[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Initialise malformed_list to 0 each time we parse a policy
commit cd0a5db5e9ffbe873fba1a0f4965cdd008824247
Author: teor (Tim Wilson-Brown) <teor2345@xxxxxxxxx>
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) {
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits