aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-12-06 06:07:57 +0000
committerRoger Dingledine <arma@torproject.org>2004-12-06 06:07:57 +0000
commitf10f24a61ca1af93fc8b5f4113c8539b677ac46b (patch)
tree924092c8e00de0129c99d8d4db9fbe8f30b03275
parent0859d09352fecddee8c9c12cd3e1ef6f46ad3a38 (diff)
downloadtor-f10f24a61ca1af93fc8b5f4113c8539b677ac46b.tar.gz
tor-f10f24a61ca1af93fc8b5f4113c8539b677ac46b.zip
avoid using uninitialized variable
svn:r3086
-rw-r--r--src/or/connection_edge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index 3fd7d67841..3a99008b2f 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -383,7 +383,7 @@ static int connection_ap_handshake_process_socks(connection_t *conn) {
/* 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) {