summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorteor (Tim Wilson-Brown) <teor2345@gmail.com>2015-12-16 08:50:13 +1100
committerteor (Tim Wilson-Brown) <teor2345@gmail.com>2015-12-16 08:51:34 +1100
commitcd0a5db5e9ffbe873fba1a0f4965cdd008824247 (patch)
treeb5a3a79fb83b2355eb2432f54f32d580ca8c326d /src
parente54e71fb6bb0f76bf73b540580abd0a5c5c8539d (diff)
downloadtor-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.c1
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) {