Browse Source

Initialise malformed_list to 0 each time we parse a policy

teor (Tim Wilson-Brown) 8 years ago
parent
commit
cd0a5db5e9
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/or/routerparse.c

+ 1 - 0
src/or/routerparse.c

@@ -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) {