[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.349 and 1.350

version 1.349, 2016/02/05 13:28:19 version 1.350, 2016/03/07 19:02:43
Line 1406 
Line 1406 
 {  {
         char buf[1024];          char buf[1024];
         char *local_ipaddr = get_local_ipaddr(c->sock);          char *local_ipaddr = get_local_ipaddr(c->sock);
         int local_port = c->sock == -1 ? 65536 : get_sock_port(c->sock, 1);          int local_port = c->sock == -1 ? 65536 : get_local_port(c->sock);
         char *remote_ipaddr = get_peer_ipaddr(c->sock);          char *remote_ipaddr = get_peer_ipaddr(c->sock);
         int remote_port = get_peer_port(c->sock);          int remote_port = get_peer_port(c->sock);
   
Line 2902 
Line 2902 
                 if (type == SSH_CHANNEL_RPORT_LISTENER && fwd->listen_port == 0 &&                  if (type == SSH_CHANNEL_RPORT_LISTENER && fwd->listen_port == 0 &&
                     allocated_listen_port != NULL &&                      allocated_listen_port != NULL &&
                     *allocated_listen_port == 0) {                      *allocated_listen_port == 0) {
                         *allocated_listen_port = get_sock_port(sock, 1);                          *allocated_listen_port = get_local_port(sock);
                         debug("Allocated listen port %d",                          debug("Allocated listen port %d",
                             *allocated_listen_port);                              *allocated_listen_port);
                 }                  }

Legend:
Removed from v.1.349  
changed lines
  Added in v.1.350