]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: quic: Add a DISGUISE() to please some compiler to qc_prep_hpkts() 1st parameter
authorFrédéric Lécaille <flecaille@haproxy.com>
Fri, 30 Jun 2023 16:37:18 +0000 (18:37 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 30 Jun 2023 16:48:52 +0000 (18:48 +0200)
commit36e6c8aa4bae96ed7d4d085a8d1fcce51f668dcb
tree176568d99c9ab60e333d53dc6481342ed345af5b
parent7f3c1bef37b7c74fe786095c116adf697c0f18cf
BUILD: quic: Add a DISGUISE() to please some compiler to qc_prep_hpkts() 1st parameter

Some compiler could complain with such a warning:
  src/quic_conn.c:3700:44: warning: potential null pointer dereference [-Wnull-dereference]
   3700 |                                 frms = &qel->pktns->tx.frms;

It could not figure out that <qel> could not be NULL at this location.
This is fixed calling qc_prep_hpkts() with a disguise 1st parameter.
src/quic_conn.c