mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 12:23:32 +01:00
Merge remote-tracking branch 'public/bug9841_024_v2' into bug9841_025
This commit is contained in:
commit
1bb6e3b503
@ -1334,6 +1334,11 @@ circuit_set_rend_token(or_circuit_t *circ, int is_rend_circ,
|
|||||||
if (circ->rendinfo)
|
if (circ->rendinfo)
|
||||||
circuit_clear_rend_token(circ);
|
circuit_clear_rend_token(circ);
|
||||||
|
|
||||||
|
if (token == NULL) {
|
||||||
|
/* We were only trying to remove this token, not set a new one. */
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
found_circ = digestmap_get(map, (const char *)token);
|
found_circ = digestmap_get(map, (const char *)token);
|
||||||
if (found_circ) {
|
if (found_circ) {
|
||||||
tor_assert(found_circ != circ);
|
tor_assert(found_circ != circ);
|
||||||
|
Loading…
Reference in New Issue
Block a user