s3:modules:vfs_virusfilter: Recent talloc changes cause infinite start-up failure
commit88ee4160e886cfc18dae58930dd0af382537edc6
authorTrever L. Adams <trever.adams@gmail.com>
Fri, 26 Feb 2021 22:52:03 +0000 (26 14:52 -0800)
committerKarolin Seeger <kseeger@samba.org>
Fri, 5 Mar 2021 13:17:14 +0000 (5 13:17 +0000)
tree25fb10cd244ee094bf678da8f8c890d77ee3d660
parentc63f00801cae16a855aa5283fa0cc449e84577ce
s3:modules:vfs_virusfilter: Recent talloc changes cause infinite start-up failure

Recent talloc changes cause the current check for failure to allocate to be incorrectly triggered.

This patch checks to see if the original parameter to be checked for NULL if the talloc returns NULL. This allows for rapid passing in the ca

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14634
RN: Fix failure of vfs_virusfilter starting due to talloc changes

Signed-off-by: Trever L. Adams" <trever.adams@gmail.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Noel Power <noel.power@suse.com>
(cherry picked from commit 5a92810082c9a9d2833946ae0d83ce05a6bde597)

Autobuild-User(v4-12-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-12-test): Fri Mar  5 13:17:14 UTC 2021 on sn-devel-184
source3/modules/vfs_virusfilter.c