mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 23:53:32 +01:00
Simplify channel_find_by_remote_digest()
This commit is contained in:
parent
965c9de498
commit
341928c807
@ -596,14 +596,13 @@ channel_find_by_global_id(uint64_t global_identifier)
|
||||
channel_t *
|
||||
channel_find_by_remote_digest(const char *identity_digest)
|
||||
{
|
||||
channel_t *rv = NULL, *tmp;
|
||||
channel_t *rv = NULL;
|
||||
|
||||
tor_assert(identity_digest);
|
||||
|
||||
/* Search for it in the identity map */
|
||||
if (channel_identity_map) {
|
||||
tmp = digestmap_get(channel_identity_map, identity_digest);
|
||||
rv = tmp;
|
||||
rv = digestmap_get(channel_identity_map, identity_digest);
|
||||
}
|
||||
|
||||
return rv;
|
||||
|
Loading…
Reference in New Issue
Block a user