소스 검색

Initialise malformed_list to 0 each time we parse a policy

teor (Tim Wilson-Brown) 8 년 전
부모
커밋
cd0a5db5e9
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/or/routerparse.c

+ 1 - 0
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) {