mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 07:07:52 +01:00
Remove a needless check in channel_tls_handle_incoming
This patch removes an "if (chan)" that occurred at a place where chan was definitely non-NULL. Having it there made some static analysis tools conclude that we were up to shenanigans. This resolves #9979.
This commit is contained in:
parent
ef4eb823f3
commit
040b478692
1 changed files with 2 additions and 2 deletions
|
@ -287,8 +287,8 @@ channel_tls_handle_incoming(or_connection_t *orconn)
|
||||||
if (is_local_addr(&(TO_CONN(orconn)->addr))) channel_mark_local(chan);
|
if (is_local_addr(&(TO_CONN(orconn)->addr))) channel_mark_local(chan);
|
||||||
channel_mark_incoming(chan);
|
channel_mark_incoming(chan);
|
||||||
|
|
||||||
/* If we got one, we should register it */
|
/* Register it */
|
||||||
if (chan) channel_register(chan);
|
channel_register(chan);
|
||||||
|
|
||||||
return chan;
|
return chan;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue