mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-04 12:32:23 +00:00
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.
This commit is contained in:
parent
b48c59a5a3
commit
ee72a43321
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user