mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-03-06 15:41:36 +01:00
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:
parent
bd24208673
commit
e4149cdbc6
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user