mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 12:23:32 +01:00
cid 432: Remove dead code if we don't handle a consensus
Bugfix on 0.2.3.1, fixes the second half of bug 4637.
This commit is contained in:
parent
682a85ff7c
commit
60c330a251
3
changes/bug4637
Normal file
3
changes/bug4637
Normal file
@ -0,0 +1,3 @@
|
||||
o Code simplifications and refactoring:
|
||||
- Remove some dead code spotted by coverity. Fixes cid 432.
|
||||
Bugfix on 0.2.3.1-alpha, closes bug 4637.
|
@ -410,7 +410,7 @@ directory_get_from_dirserver(uint8_t dir_purpose, uint8_t router_purpose,
|
||||
} else {
|
||||
/* Otherwise it might be a consensus we don't parse, but which we
|
||||
* do cache. Look at the cached copy, perhaps. */
|
||||
cached_dir_t *cd = dirserv_get_consensus(resource ? resource : "ns");
|
||||
cached_dir_t *cd = dirserv_get_consensus(resource);
|
||||
if (cd)
|
||||
if_modified_since = cd->published + 180;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user