Преглед изворни кода

Initialise malformed_list to 0 each time we parse a policy

teor (Tim Wilson-Brown) пре 10 година
родитељ
комит
cd0a5db5e9
1 измењених фајлова са 1 додато и 0 уклоњено
  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) {