mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-22 22:25:51 +01:00
Don't segfault when checking the consensus
This commit is contained in:
parent
1e1d471002
commit
1c39dbd53a
1 changed files with 1 additions and 0 deletions
|
@ -3078,6 +3078,7 @@ networkstatus_parse_vote_from_string(const char *s, const char **eos_out,
|
|||
{
|
||||
int found_sig = 0;
|
||||
SMARTLIST_FOREACH_BEGIN(footer_tokens, directory_token_t *, _tok) {
|
||||
tok = _tok;
|
||||
if (tok->tp == K_DIRECTORY_SIGNATURE)
|
||||
found_sig = 1;
|
||||
else if (found_sig) {
|
||||
|
|
Loading…
Add table
Reference in a new issue