diff options
author | Alexander Færøy <ahf@torproject.org> | 2021-12-17 16:53:47 +0000 |
---|---|---|
committer | Alexander Færøy <ahf@torproject.org> | 2021-12-17 16:53:47 +0000 |
commit | 66e7ddb551871a415cb080cba5e97fa37a2d21a1 (patch) | |
tree | 6bf2a7c79ae6b225d723a81e301e4a0d76262d99 /src/feature/dirparse/policy_parse.c | |
parent | c6486da83de8fae6de7cac7b3b7eced23da80467 (diff) | |
parent | bf10206e9e23ac0ded2cc9727666696ea25d5636 (diff) | |
download | tor-66e7ddb551871a415cb080cba5e97fa37a2d21a1.tar.gz tor-66e7ddb551871a415cb080cba5e97fa37a2d21a1.zip |
Merge remote-tracking branch 'tor-gitlab/mr/503' into main
Diffstat (limited to 'src/feature/dirparse/policy_parse.c')
-rw-r--r-- | src/feature/dirparse/policy_parse.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/feature/dirparse/policy_parse.c b/src/feature/dirparse/policy_parse.c index abf3df36c6..8d30410f58 100644 --- a/src/feature/dirparse/policy_parse.c +++ b/src/feature/dirparse/policy_parse.c @@ -192,6 +192,10 @@ router_parse_addr_policy_private(directory_token_t *tok) uint16_t port_min, port_max; addr_policy_t result; + /* Safeguard: always flag non canonical because it is a stack allocated + * object and thus should not be considered a copy stored in a map. */ + result.is_canonical = 0; + arg = tok->args[0]; if (strcmpstart(arg, "private")) return NULL; |