瀏覽代碼

avoid using uninitialized variable

svn:r3086
Roger Dingledine 21 年之前
父節點
當前提交
f10f24a61c
共有 1 個文件被更改,包括 1 次插入1 次删除
  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) {