mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 13:13:44 +01:00
Handle NULL argument to get_configured_bridge_by_addr_port_digest
Fixes bug 2313; bugfix on 0.2.2.26-beta.
This commit is contained in:
parent
2e07925a52
commit
21ed575826
4
changes/bug3213
Normal file
4
changes/bug3213
Normal file
@ -0,0 +1,4 @@
|
||||
o Major bugfixes:
|
||||
- Fix a crash bug when changing bridges in a running Tor process.
|
||||
Fixes bug 3213; bugfix on 0.2.2.26-beta.
|
||||
|
@ -4539,7 +4539,7 @@ get_configured_bridge_by_addr_port_digest(const tor_addr_t *addr,
|
||||
!tor_addr_compare(&bridge->addr, addr, CMP_EXACT) &&
|
||||
bridge->port == port)
|
||||
return bridge;
|
||||
if (tor_memeq(bridge->identity, digest, DIGEST_LEN))
|
||||
if (digest && tor_memeq(bridge->identity, digest, DIGEST_LEN))
|
||||
return bridge;
|
||||
}
|
||||
SMARTLIST_FOREACH_END(bridge);
|
||||
|
Loading…
Reference in New Issue
Block a user