BUILD: conn_stream: avoid null-deref warnings on gcc 6

gcc 6 continues its saga with excessive reports of null-deref warnings.
This time it was in the IS_HTX_CS() macro. Let's use __cs_conn() after
cs_conn() was checked.
This commit is contained in:
Willy Tarreau 2022-03-02 14:38:11 +01:00
parent bd24208673
commit e4149cdbc6

View File

@ -32,7 +32,7 @@ struct stream;
struct stream_interface;
struct check;
#define IS_HTX_CS(cs) (cs_conn(cs) && IS_HTX_CONN(cs_conn(cs)))
#define IS_HTX_CS(cs) (cs_conn(cs) && IS_HTX_CONN(__cs_conn(cs)))
struct conn_stream *cs_new();
void cs_free(struct conn_stream *cs);