[or-cvs] avoid using uninitialized variable
Roger Dingledine
arma at seul.org
Mon Dec 6 06:07:59 UTC 2004
Update of /home2/or/cvsroot/tor/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/tor/src/or
Modified Files:
connection_edge.c
Log Message:
avoid using uninitialized variable
Index: connection_edge.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/connection_edge.c,v
retrieving revision 1.259
retrieving revision 1.260
diff -u -d -r1.259 -r1.260
--- connection_edge.c 6 Dec 2004 06:06:13 -0000 1.259
+++ connection_edge.c 6 Dec 2004 06:07:57 -0000 1.260
@@ -383,7 +383,7 @@
/* not a hidden-service request (i.e. normal or .exit) */
if (socks->command == SOCKS_COMMAND_RESOLVE) {
- uint32_t answer;
+ uint32_t answer = 0;
struct in_addr in;
/* Reply to resolves immediately if we can. */
if (strlen(socks->address) > RELAY_PAYLOAD_SIZE) {
More information about the tor-commits
mailing list