Initialise malformed_list to 0 each time we parse a policy

This commit is contained in:
teor (Tim Wilson-Brown) 2015-12-16 08:50:13 +11:00
parent e54e71fb6b
commit cd0a5db5e9

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