diff options
author | Colin Watson <cjwatson@debian.org> | 2003-09-01 18:52:37 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2003-09-01 18:52:37 +0000 |
commit | 854156dd39acbde9b4a47ec0fc54a042ea7358e0 (patch) | |
tree | 96755f8590acc2146f4b4ef5b5cdba600e5d9353 /canohost.c | |
parent | fad82e8999e790899083f9e22a1841148d746df6 (diff) | |
parent | 053db7da5ce09acdf742789d9d1a05e81d4861d0 (diff) |
Import OpenSSH 3.6.1p2.
Diffstat (limited to 'canohost.c')
-rw-r--r-- | canohost.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/canohost.c b/canohost.c index 21a7eba85..941db23b6 100644 --- a/canohost.c +++ b/canohost.c | |||
@@ -81,7 +81,7 @@ get_remote_hostname(int socket, int verify_reverse_mapping) | |||
81 | NULL, 0, NI_NAMEREQD) != 0) { | 81 | NULL, 0, NI_NAMEREQD) != 0) { |
82 | /* Host name not found. Use ip address. */ | 82 | /* Host name not found. Use ip address. */ |
83 | #if 0 | 83 | #if 0 |
84 | logit("Could not reverse map address %.100s.", ntop); | 84 | log("Could not reverse map address %.100s.", ntop); |
85 | #endif | 85 | #endif |
86 | return xstrdup(ntop); | 86 | return xstrdup(ntop); |
87 | } | 87 | } |
@@ -111,7 +111,7 @@ get_remote_hostname(int socket, int verify_reverse_mapping) | |||
111 | hints.ai_family = from.ss_family; | 111 | hints.ai_family = from.ss_family; |
112 | hints.ai_socktype = SOCK_STREAM; | 112 | hints.ai_socktype = SOCK_STREAM; |
113 | if (getaddrinfo(name, NULL, &hints, &aitop) != 0) { | 113 | if (getaddrinfo(name, NULL, &hints, &aitop) != 0) { |
114 | logit("reverse mapping checking getaddrinfo for %.700s " | 114 | log("reverse mapping checking getaddrinfo for %.700s " |
115 | "failed - POSSIBLE BREAKIN ATTEMPT!", name); | 115 | "failed - POSSIBLE BREAKIN ATTEMPT!", name); |
116 | return xstrdup(ntop); | 116 | return xstrdup(ntop); |
117 | } | 117 | } |
@@ -126,7 +126,7 @@ get_remote_hostname(int socket, int verify_reverse_mapping) | |||
126 | /* If we reached the end of the list, the address was not there. */ | 126 | /* If we reached the end of the list, the address was not there. */ |
127 | if (!ai) { | 127 | if (!ai) { |
128 | /* Address not found for the host name. */ | 128 | /* Address not found for the host name. */ |
129 | logit("Address %.100s maps to %.600s, but this does not " | 129 | log("Address %.100s maps to %.600s, but this does not " |
130 | "map back to the address - POSSIBLE BREAKIN ATTEMPT!", | 130 | "map back to the address - POSSIBLE BREAKIN ATTEMPT!", |
131 | ntop, name); | 131 | ntop, name); |
132 | return xstrdup(ntop); | 132 | return xstrdup(ntop); |
@@ -166,7 +166,7 @@ check_ip_options(int socket, char *ipaddr) | |||
166 | for (i = 0; i < option_size; i++) | 166 | for (i = 0; i < option_size; i++) |
167 | snprintf(text + i*3, sizeof(text) - i*3, | 167 | snprintf(text + i*3, sizeof(text) - i*3, |
168 | " %2.2x", options[i]); | 168 | " %2.2x", options[i]); |
169 | logit("Connection from %.100s with IP options:%.800s", | 169 | log("Connection from %.100s with IP options:%.800s", |
170 | ipaddr, text); | 170 | ipaddr, text); |
171 | packet_disconnect("Connection from %.100s with IP options:%.800s", | 171 | packet_disconnect("Connection from %.100s with IP options:%.800s", |
172 | ipaddr, text); | 172 | ipaddr, text); |