mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-22 06:37:54 -04:00
CLEANUP: backend: remove useless test for inexistent connection
Coverity rightfully reported that it's pointless to test for "conn" to be null while all code paths leading to it have already dereferenced it. This addresses issue #461.
This commit is contained in:
parent
75b15f790f
commit
b1a40c72e7
1 changed files with 1 additions and 1 deletions
|
|
@ -1956,7 +1956,7 @@ void back_handle_st_con(struct stream *s)
|
|||
done:
|
||||
/* retryable error ? */
|
||||
if (si->flags & (SI_FL_EXP|SI_FL_ERR)) {
|
||||
if (!(s->flags & SF_SRV_REUSED) && conn) {
|
||||
if (!(s->flags & SF_SRV_REUSED)) {
|
||||
conn_stop_tracking(conn);
|
||||
conn_full_close(conn);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue