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:
Willy Tarreau 2020-01-23 11:36:33 +01:00
parent 75b15f790f
commit b1a40c72e7

View file

@ -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);
}