]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: stream-int: make si_appctx() never fail
authorWilly Tarreau <w@1wt.eu>
Thu, 20 Sep 2018 09:08:47 +0000 (11:08 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 20 Sep 2018 09:42:15 +0000 (11:42 +0200)
commit4ae4923c3e44f8bd62bc9bd226389f373ace695e
treef193bb6ba877cfffbd84912ee8b410bbf0ac7da9
parentbabc15e8cfa4fc6f633d45e66fea24922964413d
MINOR: stream-int: make si_appctx() never fail

Callers of si_appctx() always use the result without checking it because
they know by construction that it's valid. This results in unchecked null
pointer warnings at -Wextra, so let's remove this test and make it clear
that it's up to the caller to check validity first.
include/proto/stream_interface.h