version 1.197, 2003/09/23 20:41:11 |
version 1.198, 2003/11/21 11:57:03 |
|
|
have = buffer_len(&c->input); |
have = buffer_len(&c->input); |
if (!(c->flags & SSH_SOCKS5_AUTHDONE)) { |
if (!(c->flags & SSH_SOCKS5_AUTHDONE)) { |
/* format: ver | nmethods | methods */ |
/* format: ver | nmethods | methods */ |
if (have < 2) |
if (have < 2) |
return 0; |
return 0; |
nmethods = p[1]; |
nmethods = p[1]; |
if (have < nmethods + 2) |
if (have < nmethods + 2) |
|
|
else if (inet_ntop(af, dest_addr, c->path, sizeof(c->path)) == NULL) |
else if (inet_ntop(af, dest_addr, c->path, sizeof(c->path)) == NULL) |
return -1; |
return -1; |
c->host_port = ntohs(dest_port); |
c->host_port = ntohs(dest_port); |
|
|
debug2("channel %d: dynamic request: socks5 host %s port %u command %u", |
debug2("channel %d: dynamic request: socks5 host %s port %u command %u", |
c->self, c->path, c->host_port, s5_req.command); |
c->self, c->path, c->host_port, s5_req.command); |
|
|