[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.41.2.1 and 1.41.2.2

version 1.41.2.1, 2005/03/10 16:28:27 version 1.41.2.2, 2005/09/02 03:44:59
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.41.2.1  
changed lines
  Added in v.1.41.2.2