]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: backend: mark srv as nonnull in alloc_dst_address()
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 3 Apr 2025 13:17:53 +0000 (15:17 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 3 Apr 2025 15:19:07 +0000 (17:19 +0200)
commit76e9156c9b4ebebdd2f20a4d9aa862f2f6d66e3b
tree4c907ebb74e681d74cc3fd20c665895d3b065f3c
parentfeb1a9ea17ec57cbaaff170778992948cef74759
MINOR: backend: mark srv as nonnull in alloc_dst_address()

Server instance can be NULL on connect_server(), either when dispatch or
transparent proxy are active. However, in alloc_dst_address() access to
<srv> is safe thanks to SF_ASSIGNED stream flag. Add an ASSUME_NONNULL()
to reflect this state.

This should fix coverity report from github issue #2922.
src/backend.c