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

Diff for /src/usr.bin/ssh/session.c between version 1.38 and 1.39

version 1.38, 2000/10/11 20:27:23 version 1.39, 2000/10/14 12:12:09
Line 196 
Line 196 
          * by the client telling us, so we can equally well trust the client           * by the client telling us, so we can equally well trust the client
          * not to request anything bogus.)           * not to request anything bogus.)
          */           */
         if (!no_port_forwarding_flag)          if (!no_port_forwarding_flag && options.allow_tcp_forwarding)
                 channel_permit_all_opens();                  channel_permit_all_opens();
   
         s = session_new();          s = session_new();
Line 346 
Line 346 
                 case SSH_CMSG_PORT_FORWARD_REQUEST:                  case SSH_CMSG_PORT_FORWARD_REQUEST:
                         if (no_port_forwarding_flag) {                          if (no_port_forwarding_flag) {
                                 debug("Port forwarding not permitted for this authentication.");                                  debug("Port forwarding not permitted for this authentication.");
                                   break;
                           }
                           if (!options.allow_tcp_forwarding) {
                                   debug("Port forwarding not permitted.");
                                 break;                                  break;
                         }                          }
                         debug("Received TCP/IP port forwarding request.");                          debug("Received TCP/IP port forwarding request.");

Legend:
Removed from v.1.38  
changed lines
  Added in v.1.39