mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-01 08:03:31 +01:00
fix a memory leak when we ask for "all" networkstatuses and
we get one we don't recognize. backport candidate. backbackport candidate. svn:r9918
This commit is contained in:
parent
6a61f74689
commit
f36c613dbc
@ -2517,9 +2517,9 @@ router_set_networkstatus(const char *s, time_t arrived_at,
|
|||||||
if (smartlist_string_isin(requested_fingerprints, fp)) {
|
if (smartlist_string_isin(requested_fingerprints, fp)) {
|
||||||
smartlist_string_remove(requested_fingerprints, fp);
|
smartlist_string_remove(requested_fingerprints, fp);
|
||||||
} else {
|
} else {
|
||||||
|
if (source != NS_FROM_DIR_ALL) {
|
||||||
char *requested =
|
char *requested =
|
||||||
smartlist_join_strings(requested_fingerprints," ",0,NULL);
|
smartlist_join_strings(requested_fingerprints," ",0,NULL);
|
||||||
if (source != NS_FROM_DIR_ALL) {
|
|
||||||
log_warn(LD_DIR,
|
log_warn(LD_DIR,
|
||||||
"We received a network status with a fingerprint (%s) that we "
|
"We received a network status with a fingerprint (%s) that we "
|
||||||
"never requested. (We asked for: %s.) Dropping.",
|
"never requested. (We asked for: %s.) Dropping.",
|
||||||
|
Loading…
Reference in New Issue
Block a user