summaryrefslogtreecommitdiff
path: root/canohost.c
diff options
context:
space:
mode:
Diffstat (limited to 'canohost.c')
-rw-r--r--canohost.c8
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);