[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.4 and 1.5

version 1.4, 1999/09/30 08:34:24 version 1.5, 1999/10/03 19:22:38
Line 134 
Line 134 
   PUT_16BIT(msg + 1, port);    PUT_16BIT(msg + 1, port);
   if (send(authfd, msg, 3, 0) < 0)    if (send(authfd, msg, 3, 0) < 0)
     {      {
       shutdown(listen_sock, 2);        shutdown(listen_sock, SHUT_RDWR);
       close(listen_sock);        close(listen_sock);
       ssh_close_authentication_socket(authfd);        ssh_close_authentication_socket(authfd);
       return -1;        return -1;
Line 154 
Line 154 
   
   /* Close the socket we used for listening.  It is no longer needed.    /* Close the socket we used for listening.  It is no longer needed.
      (The authentication fd and the new connection still remain open.) */       (The authentication fd and the new connection still remain open.) */
   shutdown(listen_sock, 2);    shutdown(listen_sock, SHUT_RDWR);
   close(listen_sock);    close(listen_sock);
   ssh_close_authentication_socket(authfd);    ssh_close_authentication_socket(authfd);
   
Line 664 
Line 664 
 void ssh_close_authentication(AuthenticationConnection *auth)  void ssh_close_authentication(AuthenticationConnection *auth)
 {  {
   /* Close the connection. */    /* Close the connection. */
   shutdown(auth->fd, 2);    shutdown(auth->fd, SHUT_RDWR);
   close(auth->fd);    close(auth->fd);
   
   /* Free the buffers. */    /* Free the buffers. */

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