[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.266 and 1.267

version 1.266, 2006/08/29 10:40:18 version 1.267, 2006/12/12 03:58:42
Line 2505 
Line 2505 
         /* Send the forward request to the remote side. */          /* Send the forward request to the remote side. */
         if (compat20) {          if (compat20) {
                 const char *address_to_bind;                  const char *address_to_bind;
                 if (listen_host == NULL)                  if (listen_host == NULL) {
                         address_to_bind = "localhost";                          if (datafellows & SSH_BUG_RFWD_ADDR)
                 else if (*listen_host == '\0' || strcmp(listen_host, "*") == 0)                                  address_to_bind = "127.0.0.1";
                         address_to_bind = "";                          else
                 else                                  address_to_bind = "localhost";
                   } else if (*listen_host == '\0' ||
                              strcmp(listen_host, "*") == 0) {
                           if (datafellows & SSH_BUG_RFWD_ADDR)
                                   address_to_bind = "0.0.0.0";
                           else
                                   address_to_bind = "";
                   } else
                         address_to_bind = listen_host;                          address_to_bind = listen_host;
   
                 packet_start(SSH2_MSG_GLOBAL_REQUEST);                  packet_start(SSH2_MSG_GLOBAL_REQUEST);

Legend:
Removed from v.1.266  
changed lines
  Added in v.1.267