diff options
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 57634a21d..87e681319 100644 --- a/channels.c +++ b/channels.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: channels.c,v 1.246 2006/03/25 18:56:54 deraadt Exp $ */ | 1 | /* $OpenBSD: channels.c,v 1.247 2006/03/25 18:58:10 deraadt Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -1049,7 +1049,7 @@ channel_decode_socks5(Channel *c, fd_set *readset, fd_set *writeset) | |||
1049 | debug2("channel %d: socks5 post auth", c->self); | 1049 | debug2("channel %d: socks5 post auth", c->self); |
1050 | if (have < sizeof(s5_req)+1) | 1050 | if (have < sizeof(s5_req)+1) |
1051 | return 0; /* need more */ | 1051 | return 0; /* need more */ |
1052 | memcpy((char *)&s5_req, p, sizeof(s5_req)); | 1052 | memcpy(&s5_req, p, sizeof(s5_req)); |
1053 | if (s5_req.version != 0x05 || | 1053 | if (s5_req.version != 0x05 || |
1054 | s5_req.command != SSH_SOCKS5_CONNECT || | 1054 | s5_req.command != SSH_SOCKS5_CONNECT || |
1055 | s5_req.reserved != 0x00) { | 1055 | s5_req.reserved != 0x00) { |