version 1.293, 2009/01/22 09:46:01 |
version 1.294, 2009/01/22 09:49:57 |
|
|
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; |
|
|
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; |
} |
} |