s3:modules:vfs_virusfilter: Recent talloc changes cause infinite start-up failure
commit1c02f82ec6f179e4dc6b66fd3d76bae955e781fe
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 14:25:49 +0000 (5 14:25 +0000)
tree42f317d4159ffb07db055f388cc7ca0255364846
parent4d1ed9c319deac5cba1682611dcefdf002cb9d48
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-14-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-14-test): Fri Mar  5 14:25:49 UTC 2021 on sn-devel-184
source3/modules/vfs_virusfilter.c