summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--channels.c4
2 files changed, 6 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 407649967..00ce8ee55 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -171,6 +171,9 @@
171 - deraadt@cvs.openbsd.org 2006/03/25 18:56:55 171 - deraadt@cvs.openbsd.org 2006/03/25 18:56:55
172 [bufaux.c channels.c packet.c] 172 [bufaux.c channels.c packet.c]
173 remove (char *) casts to a function that accepts void * for the arg 173 remove (char *) casts to a function that accepts void * for the arg
174 - deraadt@cvs.openbsd.org 2006/03/25 18:58:10
175 [channels.c]
176 delete cast not required
174 177
17520060325 17820060325
176 - OpenBSD CVS Sync 179 - OpenBSD CVS Sync
@@ -4428,4 +4431,4 @@
4428 - (djm) Trim deprecated options from INSTALL. Mention UsePAM 4431 - (djm) Trim deprecated options from INSTALL. Mention UsePAM
4429 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu 4432 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
4430 4433
4431$Id: ChangeLog,v 1.4284 2006/03/26 03:28:50 djm Exp $ 4434$Id: ChangeLog,v 1.4285 2006/03/26 03:29:06 djm Exp $
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) {