瀏覽代碼

Initialize msg_len

svn:r3737
Nick Mathewson 20 年之前
父節點
當前提交
6394f77edb
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/or/control.c

+ 1 - 0
src/or/control.c

@@ -599,6 +599,7 @@ handle_control_getinfo(connection_t *conn, uint32_t len, const char *body)
   smartlist_split_string(questions, body, "\n",
                          SPLIT_SKIP_SPACE|SPLIT_IGNORE_BLANK, 0);
   answers = smartlist_create();
+  msg_len = 0;
   SMARTLIST_FOREACH(questions, const char *, q,
   {
     ans = handle_getinfo_helper(q);