mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
Assert that we aren't returning a pointer to a local variable.
GCC got confused here with LTO enabled. Fixes part of #27772.
This commit is contained in:
parent
ea5792f333
commit
620108ea77
@ -4436,7 +4436,9 @@ router_parse_addr_policy(directory_token_t *tok, unsigned fmt_flags)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return addr_policy_get_canonical_entry(&newe);
|
||||
addr_policy_t *result = addr_policy_get_canonical_entry(&newe);
|
||||
tor_assert(result != &newe); // We aren't returning the one from the stack.
|
||||
return result;
|
||||
}
|
||||
|
||||
/** Parse an exit policy line of the format "accept[6]/reject[6] private:...".
|
||||
|
Loading…
Reference in New Issue
Block a user