[BACK]Return to canohost.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/canohost.c between version 1.35 and 1.36

version 1.35, 2002/11/26 02:38:54 version 1.36, 2003/04/08 20:21:28
Line 56 
Line 56 
             NULL, 0, NI_NAMEREQD) != 0) {              NULL, 0, NI_NAMEREQD) != 0) {
                 /* Host name not found.  Use ip address. */                  /* Host name not found.  Use ip address. */
 #if 0  #if 0
                 log("Could not reverse map address %.100s.", ntop);                  logit("Could not reverse map address %.100s.", ntop);
 #endif  #endif
                 return xstrdup(ntop);                  return xstrdup(ntop);
         }          }
Line 86 
Line 86 
         hints.ai_family = from.ss_family;          hints.ai_family = from.ss_family;
         hints.ai_socktype = SOCK_STREAM;          hints.ai_socktype = SOCK_STREAM;
         if (getaddrinfo(name, NULL, &hints, &aitop) != 0) {          if (getaddrinfo(name, NULL, &hints, &aitop) != 0) {
                 log("reverse mapping checking getaddrinfo for %.700s "                  logit("reverse mapping checking getaddrinfo for %.700s "
                     "failed - POSSIBLE BREAKIN ATTEMPT!", name);                      "failed - POSSIBLE BREAKIN ATTEMPT!", name);
                 return xstrdup(ntop);                  return xstrdup(ntop);
         }          }
Line 101 
Line 101 
         /* If we reached the end of the list, the address was not there. */          /* If we reached the end of the list, the address was not there. */
         if (!ai) {          if (!ai) {
                 /* Address not found for the host name. */                  /* Address not found for the host name. */
                 log("Address %.100s maps to %.600s, but this does not "                  logit("Address %.100s maps to %.600s, but this does not "
                     "map back to the address - POSSIBLE BREAKIN ATTEMPT!",                      "map back to the address - POSSIBLE BREAKIN ATTEMPT!",
                     ntop, name);                      ntop, name);
                 return xstrdup(ntop);                  return xstrdup(ntop);
Line 141 
Line 141 
                 for (i = 0; i < option_size; i++)                  for (i = 0; i < option_size; i++)
                         snprintf(text + i*3, sizeof(text) - i*3,                          snprintf(text + i*3, sizeof(text) - i*3,
                             " %2.2x", options[i]);                              " %2.2x", options[i]);
                 log("Connection from %.100s with IP options:%.800s",                  logit("Connection from %.100s with IP options:%.800s",
                     ipaddr, text);                      ipaddr, text);
                 packet_disconnect("Connection from %.100s with IP options:%.800s",                  packet_disconnect("Connection from %.100s with IP options:%.800s",
                     ipaddr, text);                      ipaddr, text);

Legend:
Removed from v.1.35  
changed lines
  Added in v.1.36