]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: ssl_sock: remove build warnings on potential null-derefs
authorWilly Tarreau <w@1wt.eu>
Thu, 20 Sep 2018 08:57:52 +0000 (10:57 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 20 Sep 2018 09:42:15 +0000 (11:42 +0200)
commit07d94e48d96e6993cb6444e61913d16c20da6544
tree5975b8d6aa0c9b2a7089e6daa55c19d37c661d0d
parent4ae4923c3e44f8bd62bc9bd226389f373ace695e
BUILD: ssl_sock: remove build warnings on potential null-derefs

When building with -Wnull-dereferences, gcc sees some cases where a
pointer is dereferenced after a check may set it to null. While all of
these are already guarded by either a preliminary test or the code's
construction (eg: listeners code being called only on listeners), it
cannot be blamed for not "seeing" this, so better use the unguarded
calls everywhere this happens, particularly after checks. This is a
step towards building with -Wextra.
src/ssl_sock.c