[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.260 and 1.261

version 1.260, 2012/03/15 03:10:27 version 1.261, 2012/12/02 20:46:11
Line 256 
Line 256 
         setproctitle("%s", authctxt->pw->pw_name);          setproctitle("%s", authctxt->pw->pw_name);
   
         /* setup the channel layer */          /* setup the channel layer */
         if (!no_port_forwarding_flag && options.allow_tcp_forwarding)          if (no_port_forwarding_flag ||
               (options.allow_tcp_forwarding & FORWARD_LOCAL) == 0)
                   channel_disable_adm_local_opens();
           else
                 channel_permit_all_opens();                  channel_permit_all_opens();
   
         auth_debug_send();          auth_debug_send();
Line 366 
Line 369 
                                 debug("Port forwarding not permitted for this authentication.");                                  debug("Port forwarding not permitted for this authentication.");
                                 break;                                  break;
                         }                          }
                         if (!options.allow_tcp_forwarding) {                          if (!(options.allow_tcp_forwarding & FORWARD_REMOTE)) {
                                 debug("Port forwarding not permitted.");                                  debug("Port forwarding not permitted.");
                                 break;                                  break;
                         }                          }

Legend:
Removed from v.1.260  
changed lines
  Added in v.1.261