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

Diff for /src/usr.bin/ssh/ssh.c between version 1.282 and 1.283

version 1.282, 2006/07/11 10:12:07 version 1.283, 2006/07/11 18:50:48
Line 802 
Line 802 
                     options.local_forwards[i].connect_port,                      options.local_forwards[i].connect_port,
                     options.gateway_ports);                      options.gateway_ports);
         }          }
           if (i > 0 && success != i && options.exit_on_forward_failure)
                   fatal("Could not request local forwarding.");
         if (i > 0 && success == 0)          if (i > 0 && success == 0)
                 error("Could not request local forwarding.");                  error("Could not request local forwarding.");
   
Line 814 
Line 816 
                     options.remote_forwards[i].listen_port,                      options.remote_forwards[i].listen_port,
                     options.remote_forwards[i].connect_host,                      options.remote_forwards[i].connect_host,
                     options.remote_forwards[i].connect_port);                      options.remote_forwards[i].connect_port);
                 channel_request_remote_forwarding(                  if (channel_request_remote_forwarding(
                     options.remote_forwards[i].listen_host,                      options.remote_forwards[i].listen_host,
                     options.remote_forwards[i].listen_port,                      options.remote_forwards[i].listen_port,
                     options.remote_forwards[i].connect_host,                      options.remote_forwards[i].connect_host,
                     options.remote_forwards[i].connect_port);                      options.remote_forwards[i].connect_port) < 0) {
                           if (options.exit_on_forward_failure)
                                   fatal("Could not request remote forwarding.");
                           else
                                   logit("Warning: Could not request remote "
                                       "forwarding.");
                   }
         }          }
 }  }
   
Line 1000 
Line 1008 
             options.remote_forwards[i].listen_port,              options.remote_forwards[i].listen_port,
             options.remote_forwards[i].connect_host,              options.remote_forwards[i].connect_host,
             options.remote_forwards[i].connect_port);              options.remote_forwards[i].connect_port);
         if (type == SSH2_MSG_REQUEST_FAILURE)          if (type == SSH2_MSG_REQUEST_FAILURE) {
                 logit("Warning: remote port forwarding failed for listen "                  if (options.exit_on_forward_failure)
                     "port %d", options.remote_forwards[i].listen_port);                          fatal("Error: remote port forwarding failed for "
                               "listen port %d",
                               options.remote_forwards[i].listen_port);
                   else
                           logit("Warning: remote port forwarding failed for "
                               "listen port %d",
                               options.remote_forwards[i].listen_port);
           }
 }  }
   
 static void  static void

Legend:
Removed from v.1.282  
changed lines
  Added in v.1.283