diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | canohost.c | 3 |
2 files changed, 6 insertions, 2 deletions
@@ -9,6 +9,9 @@ | |||
9 | - markus@cvs.openbsd.org 2001/02/8 22:37:10 | 9 | - markus@cvs.openbsd.org 2001/02/8 22:37:10 |
10 | [canohost.c] | 10 | [canohost.c] |
11 | remove last call to sprintf; ok deraadt@ | 11 | remove last call to sprintf; ok deraadt@ |
12 | - markus@cvs.openbsd.org 2001/02/10 1:33:32 | ||
13 | [canohost.c] | ||
14 | add debug message, since sshd blocks here if DNS is not available | ||
12 | 15 | ||
13 | 20010210 | 16 | 20010210 |
14 | - (djm) Sync sftp and scp stuff from OpenBSD: | 17 | - (djm) Sync sftp and scp stuff from OpenBSD: |
@@ -3792,4 +3795,4 @@ | |||
3792 | - Wrote replacements for strlcpy and mkdtemp | 3795 | - Wrote replacements for strlcpy and mkdtemp |
3793 | - Released 1.0pre1 | 3796 | - Released 1.0pre1 |
3794 | 3797 | ||
3795 | $Id: ChangeLog,v 1.715 2001/02/10 21:34:46 mouring Exp $ | 3798 | $Id: ChangeLog,v 1.716 2001/02/10 21:39:49 mouring Exp $ |
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" |
15 | RCSID("$OpenBSD: canohost.c,v 1.22 2001/02/08 22:37:10 markus Exp $"); | 15 | RCSID("$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) { |