vfs_virusfilter: Allocate separate memory for config char*
authorArne Kreddig <arne@kreddig.net>
Fri, 1 Jan 2021 21:54:22 +0000 (22:54 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 7 Jan 2021 19:25:38 +0000 (19:25 +0000)
commit2f21d1b0ac8526508161de73290f67858b2fe668
tree199485217f065715cb9c83cab315f1633029f5a1
parent38c989fab78c3baade3e441829b7becf6b25ef3f
vfs_virusfilter: Allocate separate memory for config char*

Instead of using only the pointer to the configuration char* from the
global configuration, vfs_virusfilter now allocates its own memory and
copies the char* from the global configuration.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14606
Signed-off-by: Arne Kreddig <arne@kreddig.net>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Jan  7 19:25:38 UTC 2021 on sn-devel-184
source3/modules/vfs_virusfilter.c