[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] put the have_warned_about_unsafe_socks static var inside th...
- To: or-cvs@freehaven.net
- Subject: [or-cvs] put the have_warned_about_unsafe_socks static var inside th...
- From: arma@seul.org (Roger Dingledine)
- Date: Tue, 3 Aug 2004 21:08:12 -0400 (EDT)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Tue, 03 Aug 2004 21:08:19 -0400
- Reply-to: or-dev@freehaven.net
- Sender: owner-or-cvs@freehaven.net
Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or
Modified Files:
buffers.c
Log Message:
put the have_warned_about_unsafe_socks static var inside the function
Index: buffers.c
===================================================================
RCS file: /home/or/cvsroot/src/or/buffers.c,v
retrieving revision 1.99
retrieving revision 1.100
diff -u -d -r1.99 -r1.100
--- buffers.c 3 Aug 2004 23:42:33 -0000 1.99
+++ buffers.c 4 Aug 2004 01:08:10 -0000 1.100
@@ -409,10 +409,6 @@
return 1;
}
-/** If the user connects with socks4 or the wrong variant of socks5,
- * then log one warning to let him know that it might be unwise. */
-static int have_warned_about_unsafe_socks = 0;
-
/** There is a (possibly incomplete) socks handshake on <b>buf</b>, of one
* of the forms
* - socks4: "socksheader username\\0"
@@ -440,6 +436,10 @@
char *next, *startaddr;
struct in_addr in;
+ /* If the user connects with socks4 or the wrong variant of socks5,
+ * then log a warning to let him know that it might be unwise. */
+ static int have_warned_about_unsafe_socks = 0;
+
if(buf->datalen < 2) /* version and another byte */
return 0;
switch(*(buf->mem)) { /* which version of socks? */