[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.62 and 1.63

version 1.62, 2007/12/27 14:22:08 version 1.63, 2008/06/12 00:03:49
Line 81 
Line 81 
         memset(&hints, 0, sizeof(hints));          memset(&hints, 0, sizeof(hints));
         hints.ai_socktype = SOCK_DGRAM; /*dummy*/          hints.ai_socktype = SOCK_DGRAM; /*dummy*/
         hints.ai_flags = AI_NUMERICHOST;          hints.ai_flags = AI_NUMERICHOST;
         if (getaddrinfo(name, "0", &hints, &ai) == 0) {          if (getaddrinfo(name, NULL, &hints, &ai) == 0) {
                 logit("Nasty PTR record \"%s\" is set up for %s, ignoring",                  logit("Nasty PTR record \"%s\" is set up for %s, ignoring",
                     name, ntop);                      name, ntop);
                 freeaddrinfo(ai);                  freeaddrinfo(ai);

Legend:
Removed from v.1.62  
changed lines
  Added in v.1.63