]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
avoid using uninitialized variable
authorRoger Dingledine <arma@torproject.org>
Mon, 6 Dec 2004 06:07:57 +0000 (06:07 +0000)
committerRoger Dingledine <arma@torproject.org>
Mon, 6 Dec 2004 06:07:57 +0000 (06:07 +0000)
svn:r3086

src/or/connection_edge.c

index 3fd7d67841a89d811a7d7a2fd955dca88878dd63..3a99008b2fcbf661a0e40030432f297143bd43ef 100644 (file)
@@ -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) {