mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
Report deleted consensuses as NOT_FOUND rather than AVAILABLE
This bug happened because of a bogus pointer check in consdiffmgr_find_consensus(), not in any released Tor. Fixes CID 1409670. Good catch, Coverity!
This commit is contained in:
parent
222534d354
commit
2ca827104d
@ -577,7 +577,7 @@ consdiffmgr_find_consensus(struct consensus_cache_entry_t **entry_out,
|
||||
if (!handle)
|
||||
return CONSDIFF_NOT_FOUND;
|
||||
*entry_out = consensus_cache_entry_handle_get(handle);
|
||||
if (entry_out)
|
||||
if (*entry_out)
|
||||
return CONSDIFF_AVAILABLE;
|
||||
else
|
||||
return CONSDIFF_NOT_FOUND;
|
||||
|
Loading…
Reference in New Issue
Block a user