]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Initialize msg_len
authorNick Mathewson <nickm@torproject.org>
Thu, 10 Mar 2005 18:46:11 +0000 (18:46 +0000)
committerNick Mathewson <nickm@torproject.org>
Thu, 10 Mar 2005 18:46:11 +0000 (18:46 +0000)
svn:r3737

src/or/control.c

index 257203dcd1e7f7941af0bf5367576c5277d154d6..b75f95b5e882273514f3a005f67cef12b4ee4da4 100644 (file)
@@ -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);