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

Diff for /src/usr.bin/ssh/sshconnect.c between version 1.10 and 1.11

version 1.10, 1999/09/30 17:08:52 version 1.11, 1999/10/03 19:22:39
Line 247 
Line 247 
           restore_uid();            restore_uid();
   
           /* Destroy the failed socket. */            /* Destroy the failed socket. */
           shutdown(sock, 2);            shutdown(sock, SHUT_RDWR);
           close(sock);            close(sock);
         }          }
       else        else
Line 295 
Line 295 
               /* Close the failed socket; there appear to be some problems                /* Close the failed socket; there appear to be some problems
                  when reusing a socket for which connect() has already                   when reusing a socket for which connect() has already
                  returned an error. */                   returned an error. */
               shutdown(sock, 2);                shutdown(sock, SHUT_RDWR);
               close(sock);                close(sock);
             }              }
           if (hp->h_addr_list[i])            if (hp->h_addr_list[i])

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11