summaryrefslogtreecommitdiff
path: root/canohost.c
diff options
context:
space:
mode:
Diffstat (limited to 'canohost.c')
-rw-r--r--canohost.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/canohost.c b/canohost.c
index d47940b1b..52921f5b0 100644
--- a/canohost.c
+++ b/canohost.c
@@ -12,7 +12,7 @@
12 */ 12 */
13 13
14#include "includes.h" 14#include "includes.h"
15RCSID("$OpenBSD: canohost.c,v 1.22 2001/02/08 22:37:10 markus Exp $"); 15RCSID("$OpenBSD: canohost.c,v 1.23 2001/02/10 01:33:32 markus Exp $");
16 16
17#include "packet.h" 17#include "packet.h"
18#include "xmalloc.h" 18#include "xmalloc.h"
@@ -71,6 +71,7 @@ get_remote_hostname(int socket, int reverse_mapping_check)
71 NULL, 0, NI_NUMERICHOST) != 0) 71 NULL, 0, NI_NUMERICHOST) != 0)
72 fatal("get_remote_hostname: getnameinfo NI_NUMERICHOST failed"); 72 fatal("get_remote_hostname: getnameinfo NI_NUMERICHOST failed");
73 73
74 debug("Trying to reverse map address %.100s.", ntop);
74 /* Map the IP address to a host name. */ 75 /* Map the IP address to a host name. */
75 if (getnameinfo((struct sockaddr *)&from, fromlen, name, sizeof(name), 76 if (getnameinfo((struct sockaddr *)&from, fromlen, name, sizeof(name),
76 NULL, 0, NI_NAMEREQD) != 0) { 77 NULL, 0, NI_NAMEREQD) != 0) {