]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: quic: initialize msg_flags before sendmsg
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 21 Feb 2024 09:05:14 +0000 (10:05 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 21 Feb 2024 09:13:53 +0000 (10:13 +0100)
commita17eaf7763010da953c8e98e45e345dce38a6523
tree9bf951f8825e6717ad5f28c2b3404e9755dea578
parent9d572952a299cad0d90ce25996668db6006e27d9
BUG/MINOR: quic: initialize msg_flags before sendmsg

Previously, msghdr struct used for sendmsg was memset to 0. This was
updated for performance reason with each members individually defined.
This is done by the following commit :

  commit 107d6d75465419a09d90c790edb617091a04468a
  OPTIM: quic: improve slightly qc_snd_buf() internal

msg_flags is the only member unset, as sendmsg manual page reports that
it is unused. However, this caused a coverity report. In the end, it is
better to explicitely set it to 0 to avoid any future interrogations,
compiler warning or even portability issues.

This should fix coverity report from github issue #2455.

No need to backport unless above patch is.
src/quic_sock.c