diff --git a/src/proto_http.c b/src/proto_http.c index 2a88fe0ac..3d68da89d 100644 --- a/src/proto_http.c +++ b/src/proto_http.c @@ -817,8 +817,7 @@ void http_perform_server_redirect(struct session *s, struct stream_interface *si http_server_error(s, si, SN_ERR_PRXCOND, SN_FINST_C, 302, &trash); /* FIXME: we should increase a counter of redirects per server and per backend. */ - if (srv) - srv_inc_sess_ctr(srv); + srv_inc_sess_ctr(srv); } /* Return the error message corresponding to si->err_type. It is assumed