[tor-commits] [tor/master] Initialise malformed_list to 0 each time we parse a policy

nickm at torproject.org nickm at torproject.org
Wed Dec 16 13:51:00 UTC 2015


commit cd0a5db5e9ffbe873fba1a0f4965cdd008824247
Author: teor (Tim Wilson-Brown) <teor2345 at gmail.com>
Date:   Wed Dec 16 08:50:13 2015 +1100

    Initialise malformed_list to 0 each time we parse a policy
---
 src/or/routerparse.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/or/routerparse.c b/src/or/routerparse.c
index f6619cb..8170bbb 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) {





More information about the tor-commits mailing list