]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Initialise malformed_list to 0 each time we parse a policy
authorteor (Tim Wilson-Brown) <teor2345@gmail.com>
Tue, 15 Dec 2015 21:50:13 +0000 (08:50 +1100)
committerteor (Tim Wilson-Brown) <teor2345@gmail.com>
Tue, 15 Dec 2015 21:51:34 +0000 (08:51 +1100)
src/or/routerparse.c

index f6619cb902fd39b87c628addd1910cee3c60714c..8170bbb0572ae4e380e119cd6f14466d80bb6790 100644 (file)
@@ -3697,6 +3697,7 @@ router_parse_addr_policy_item_from_string,(const char *s, int assume_action,
   memarea_t *area = NULL;
 
   tor_assert(malformed_list);
+  *malformed_list = 0;
 
   s = eat_whitespace(s);
   if ((*s == '*' || TOR_ISDIGIT(*s)) && assume_action >= 0) {