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

Diff for /src/usr.bin/ssh/ssh-keyscan.c between version 1.96 and 1.97

version 1.96, 2015/01/20 23:14:00 version 1.97, 2015/01/28 21:15:47
Line 301 
Line 301 
         memset(&hints, 0, sizeof(hints));          memset(&hints, 0, sizeof(hints));
         hints.ai_family = IPv4or6;          hints.ai_family = IPv4or6;
         hints.ai_socktype = SOCK_STREAM;          hints.ai_socktype = SOCK_STREAM;
         if ((gaierr = getaddrinfo(host, strport, &hints, &aitop)) != 0)          if ((gaierr = getaddrinfo(host, strport, &hints, &aitop)) != 0) {
                 fatal("getaddrinfo %s: %s", host, ssh_gai_strerror(gaierr));                  error("getaddrinfo %s: %s", host, ssh_gai_strerror(gaierr));
                   return -1;
           }
         for (ai = aitop; ai; ai = ai->ai_next) {          for (ai = aitop; ai; ai = ai->ai_next) {
                 s = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);                  s = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
                 if (s < 0) {                  if (s < 0) {

Legend:
Removed from v.1.96  
changed lines
  Added in v.1.97