Parcourir la source

avoid using uninitialized variable

svn:r3086
Roger Dingledine il y a 21 ans
Parent
commit
f10f24a61c
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/or/connection_edge.c

+ 1 - 1
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) {