From: teor (Tim Wilson-Brown) Date: Tue, 15 Dec 2015 21:50:13 +0000 (+1100) Subject: Initialise malformed_list to 0 each time we parse a policy X-Git-Tag: tor-0.2.8.1-alpha~130^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd0a5db5e9ffbe873fba1a0f4965cdd008824247;p=thirdparty%2Ftor.git Initialise malformed_list to 0 each time we parse a policy --- diff --git a/src/or/routerparse.c b/src/or/routerparse.c index f6619cb902..8170bbb057 100644 --- a/src/or/routerparse.c +++ b/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) {