[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.42 and 1.42.2.1

version 1.42, 2005/02/18 03:05:53 version 1.42.2.1, 2005/09/04 18:40:01
Line 137 
Line 137 
         u_char options[200];          u_char options[200];
         char text[sizeof(options) * 3 + 1];          char text[sizeof(options) * 3 + 1];
         socklen_t option_size;          socklen_t option_size;
         int i, ipproto;          u_int i;
           int ipproto;
         struct protoent *ip;          struct protoent *ip;
   
         if ((ip = getprotobyname("ip")) != NULL)          if ((ip = getprotobyname("ip")) != NULL)
Line 307 
Line 308 
         } else {          } else {
                 if (getpeername(sock, (struct sockaddr *)&from, &fromlen) < 0) {                  if (getpeername(sock, (struct sockaddr *)&from, &fromlen) < 0) {
                         debug("getpeername failed: %.100s", strerror(errno));                          debug("getpeername failed: %.100s", strerror(errno));
                         cleanup_exit(255);                          return -1;
                 }                  }
         }          }
         /* Return port number. */          /* Return port number. */

Legend:
Removed from v.1.42  
changed lines
  Added in v.1.42.2.1