diff options
author | Darren Tucker <dtucker@zip.com.au> | 2004-05-13 16:39:33 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2004-05-13 16:39:33 +1000 |
commit | 1f8311c836a20ce4923e2142d206f8d8073d0ca4 (patch) | |
tree | 93c92ccf9709d18faa075fb2b3c5fda4d969b28a /channels.c | |
parent | b42714e28bcb22c5b52b0266813165cf5e7e9ccb (diff) |
- deraadt@cvs.openbsd.org 2004/05/11 19:01:43
[auth.c auth2-none.c authfile.c channels.c monitor.c monitor_mm.c
packet.c packet.h progressmeter.c session.c openbsd-compat/xmmap.c]
improve some code lint did not like; djm millert ok
Diffstat (limited to 'channels.c')
-rw-r--r-- | channels.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/channels.c b/channels.c index e663c2159..55dc67342 100644 --- a/channels.c +++ b/channels.c | |||
@@ -39,7 +39,7 @@ | |||
39 | */ | 39 | */ |
40 | 40 | ||
41 | #include "includes.h" | 41 | #include "includes.h" |
42 | RCSID("$OpenBSD: channels.c,v 1.200 2004/01/19 09:24:21 markus Exp $"); | 42 | RCSID("$OpenBSD: channels.c,v 1.201 2004/05/11 19:01:43 deraadt Exp $"); |
43 | 43 | ||
44 | #include "ssh.h" | 44 | #include "ssh.h" |
45 | #include "ssh1.h" | 45 | #include "ssh1.h" |
@@ -1031,7 +1031,7 @@ channel_decode_socks5(Channel *c, fd_set * readset, fd_set * writeset) | |||
1031 | buffer_get(&c->input, (char *)&dest_port, 2); | 1031 | buffer_get(&c->input, (char *)&dest_port, 2); |
1032 | dest_addr[addrlen] = '\0'; | 1032 | dest_addr[addrlen] = '\0'; |
1033 | if (s5_req.atyp == SSH_SOCKS5_DOMAIN) | 1033 | if (s5_req.atyp == SSH_SOCKS5_DOMAIN) |
1034 | strlcpy(c->path, dest_addr, sizeof(c->path)); | 1034 | strlcpy(c->path, (char *)dest_addr, sizeof(c->path)); |
1035 | else if (inet_ntop(af, dest_addr, c->path, sizeof(c->path)) == NULL) | 1035 | else if (inet_ntop(af, dest_addr, c->path, sizeof(c->path)) == NULL) |
1036 | return -1; | 1036 | return -1; |
1037 | c->host_port = ntohs(dest_port); | 1037 | c->host_port = ntohs(dest_port); |