[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.293 and 1.294

version 1.293, 2009/01/22 09:46:01 version 1.294, 2009/01/22 09:49:57
Line 1176 
Line 1176 
                 c->path = NULL;                  c->path = NULL;
         }          }
         if (s5_req.atyp == SSH_SOCKS5_DOMAIN) {          if (s5_req.atyp == SSH_SOCKS5_DOMAIN) {
                 if (addrlen > NI_MAXHOST - 1) {                  if (addrlen >= NI_MAXHOST) {
                         error("channel %d: dynamic request: socks5 hostname "                          error("channel %d: dynamic request: socks5 hostname "
                             "\"%.100s\" too long", c->self, dest_addr);                              "\"%.100s\" too long", c->self, dest_addr);
                         return -1;                          return -1;
Line 2455 
Line 2455 
                 error("No forward host name.");                  error("No forward host name.");
                 return 0;                  return 0;
         }          }
         if (strlen(host) > NI_MAXHOST) {          if (strlen(host) >= NI_MAXHOST) {
                 error("Forward host name too long.");                  error("Forward host name too long.");
                 return 0;                  return 0;
         }          }

Legend:
Removed from v.1.293  
changed lines
  Added in v.1.294