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

Diff for /src/usr.bin/ssh/authfd.c between version 1.3 and 1.4

version 1.3, 1999/09/29 21:14:15 version 1.4, 1999/09/30 08:34:24
Line 53 
Line 53 
   if (sock < 0)    if (sock < 0)
     return -1;      return -1;
   
   if (connect(sock, (struct sockaddr *)&sunaddr, AF_UNIX_SIZE(sunaddr)) < 0)    if (connect(sock, (struct sockaddr *)&sunaddr, sizeof(sunaddr)) < 0)
     {      {
       close(sock);        close(sock);
       return -1;        return -1;
Line 75 
Line 75 
 /* Dummy alarm used to prevent waiting for connection from the  /* Dummy alarm used to prevent waiting for connection from the
    authentication agent indefinitely. */     authentication agent indefinitely. */
   
 static RETSIGTYPE dummy_alarm_handler(int sig)  static void dummy_alarm_handler(int sig)
 {  {
   /* Do nothing; a cought signal will just cause accept to return. */    /* Do nothing; a cought signal will just cause accept to return. */
 }  }
Line 88 
Line 88 
   int authfd;    int authfd;
   int listen_sock, sock, port, addrlen;    int listen_sock, sock, port, addrlen;
   int old_timeout;    int old_timeout;
   RETSIGTYPE (*old_handler)();    void (*old_handler)();
   struct sockaddr_in sin;    struct sockaddr_in sin;
   char msg[3];    char msg[3];
   

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4