summaryrefslogtreecommitdiff
path: root/channels.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2006-03-26 14:29:06 +1100
committerDamien Miller <djm@mindrot.org>2006-03-26 14:29:06 +1100
commite3b21a5f59105174ba923beea8132fc20335130a (patch)
tree191e6bb3b8d333cf33cd459a804d4ad53e4d6ec3 /channels.c
parenta0fdce9a47dfa572fde97e1a2ee9b33efb9fd549 (diff)
- deraadt@cvs.openbsd.org 2006/03/25 18:58:10
[channels.c] delete cast not required
Diffstat (limited to 'channels.c')
-rw-r--r--channels.c4
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) {