diff options
author | teor (Tim Wilson-Brown) <teor2345@gmail.com> | 2015-12-16 08:50:13 +1100 |
---|---|---|
committer | teor (Tim Wilson-Brown) <teor2345@gmail.com> | 2015-12-16 08:51:34 +1100 |
commit | cd0a5db5e9ffbe873fba1a0f4965cdd008824247 (patch) | |
tree | b5a3a79fb83b2355eb2432f54f32d580ca8c326d /src | |
parent | e54e71fb6bb0f76bf73b540580abd0a5c5c8539d (diff) | |
download | tor-cd0a5db5e9ffbe873fba1a0f4965cdd008824247.tar.gz tor-cd0a5db5e9ffbe873fba1a0f4965cdd008824247.zip |
Initialise malformed_list to 0 each time we parse a policy
Diffstat (limited to 'src')
-rw-r--r-- | src/or/routerparse.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) { |