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

Diff for /src/usr.bin/ssh/channels.c between version 1.31 and 1.32

version 1.31, 1999/12/01 13:59:15 version 1.32, 1999/12/06 12:07:21
Line 921 
Line 921 
         /* Allocate a channel number for the socket. */          /* Allocate a channel number for the socket. */
         ch = channel_allocate(SSH_CHANNEL_PORT_LISTENER, sock,          ch = channel_allocate(SSH_CHANNEL_PORT_LISTENER, sock,
                               xstrdup("port listener"));                                xstrdup("port listener"));
         strcpy(channels[ch].path, host);          strlcpy(channels[ch].path, host, sizeof(channels[ch].path));
         channels[ch].host_port = host_port;          channels[ch].host_port = host_port;
         channels[ch].listening_port = port;          channels[ch].listening_port = port;
 }  }
Line 1498 
Line 1498 
         /* Allocate a channel for the authentication agent socket. */          /* Allocate a channel for the authentication agent socket. */
         newch = channel_allocate(SSH_CHANNEL_AUTH_SOCKET, sock,          newch = channel_allocate(SSH_CHANNEL_AUTH_SOCKET, sock,
                                  xstrdup("auth socket"));                                   xstrdup("auth socket"));
         strcpy(channels[newch].path, channel_forwarded_auth_socket_name);          strlcpy(channels[newch].path, channel_forwarded_auth_socket_name,
               sizeof(channels[newch].path));
 }  }
   
 /* This is called to process an SSH_SMSG_AGENT_OPEN message. */  /* This is called to process an SSH_SMSG_AGENT_OPEN message. */

Legend:
Removed from v.1.31  
changed lines
  Added in v.1.32