summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-02-10 21:39:49 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-02-10 21:39:49 +0000
commit874a0b364c64beda0cb8e55a7b684d76b592c91c (patch)
tree34d4a98918e41b3328d27adfe94443364557351f
parent075390a3f8ea4f56265d8776c762ab4dc10d8227 (diff)
- markus@cvs.openbsd.org 2001/02/10 1:33:32
[canohost.c] add debug message, since sshd blocks here if DNS is not available
-rw-r--r--ChangeLog5
-rw-r--r--canohost.c3
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index e33007ac5..76c61af87 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
1320010210 1620010210
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"
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) {