]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: tree-wide: Avoid warnings about undefined entities retrieved from a CS
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 24 Feb 2022 12:45:27 +0000 (13:45 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 24 Feb 2022 12:56:52 +0000 (13:56 +0100)
commit2da02ae8b2ce60b9106fa893dc02917c26734c9c
tree21e6dee60bf196f773917e3217981f7e8d1ecbc5
parent9264a2c0e8e031ab9ae8193ad576c8fceed7a82b
BUILD: tree-wide: Avoid warnings about undefined entities retrieved from a CS

Since recent changes related to the conn-stream/stream-interface
refactoring, GCC reports potential null pointer dereferences when we get the
appctx, the stream or the stream-interface from the conn-strem. Of course,
depending on the time, these entities may be null. But at many places, we
know they are defined and it is safe to get them without any check. Thus, we
use ALREADY_CHECKED() macro to silent these warnings.

Note that the refactoring is unfinished, so it is not a real issue for now.
include/haproxy/applet.h
include/haproxy/conn_stream.h
include/haproxy/stream_interface.h
src/hlua.c
src/http_ana.c
src/mux_pt.c
src/proxy.c
src/stats.c
src/stream.c