diff options
author | Amaury Denoyelle <adenoyelle@haproxy.com> | 2021-11-19 15:49:29 +0100 |
---|---|---|
committer | Amaury Denoyelle <adenoyelle@haproxy.com> | 2021-11-19 15:55:19 +0100 |
commit | ee72a43321a22719eb06a6fad5240039aeb70b04 (patch) | |
tree | 1d6c6e2b167ae81853f756c32386a7a6b6563325 | |
parent | b48c59a5a37faa01b4855d7abd9f3f0cc423c1da (diff) | |
download | haproxy-ee72a43321a22719eb06a6fad5240039aeb70b04.tar.gz |
BUILD: quic: fix potential NULL dereference on xprt_quic
A warning is triggered by gcc9 on this code path, which is the compiler
version used by ubuntu20.04 on the github CI.
This is linked to github issue #1445.
-rw-r--r-- | src/quic_sock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/quic_sock.c b/src/quic_sock.c index a574de0c0..38a8aab4b 100644 --- a/src/quic_sock.c +++ b/src/quic_sock.c @@ -191,9 +191,9 @@ void quic_sock_fd_iocb(int fd) return; rxbuf = MT_LIST_POP(&l->rx.rxbuf_list, typeof(rxbuf), mt_list); - buf = &rxbuf->buf; - if (!buf) + if (!rxbuf) goto out; + buf = &rxbuf->buf; params = &l->bind_conf->quic_params; max_sz = params->max_udp_payload_size; |