]> git.ipfire.org Git - thirdparty/strongswan.git/commit
imv-scanner: Fix potentially unsafe port filter attribute destruction
authorTobias Brunner <tobias@strongswan.org>
Thu, 3 Dec 2020 11:14:35 +0000 (12:14 +0100)
committerTobias Brunner <tobias@strongswan.org>
Thu, 3 Dec 2020 11:19:06 +0000 (12:19 +0100)
commiteb4cd8e3b1e46ceeb748bf21f3d958911f19aa42
treea4acd01f06971feeb43d14f8ecc27f73adfb75a4
parent25ec2d04aa83249e95b85de6a3b376457b4bf76d
imv-scanner: Fix potentially unsafe port filter attribute destruction

DESTROY_IF() checks if the given value is not NULL, before calling
destroy() on it, which does not work for sub-structs.  If
port_filter_attr is NULL, this could crash.
src/libimcv/plugins/imv_scanner/imv_scanner_state.c