]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: do not close uninit FD in quic_test_socketops()
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 16 Jul 2024 08:51:02 +0000 (10:51 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 16 Jul 2024 08:51:02 +0000 (10:51 +0200)
commitd57b95aab7afc771c9e3dd0def0821baeddce6f2
treeb1b8f70199ee76f6050645fd860fc6a4bc20b588
parent05f33e95ba5e05a2600d6e95e6ad8be6f950912a
BUG/MINOR: do not close uninit FD in quic_test_socketops()

On startup, quic_test_socketops() is called to ensure that chosen
configuration option are compatible with UDP system stack. A dummy FD is
allocated to invoke various setsockopt() settings.

If no tests are required, FD is not allocated. In this case, close()
should not be close. This is mostly for better coding as this does not
cause any real issue for users.

This should fix github issue #2638.

No need to backport.
src/proto_quic.c