1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

Samba-VirusFilter: fix virusfilter_vfs_close() crash

Signed-off-by: Trever L. Adams <trever.adams@gmail.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
This commit is contained in:
Trever L. Adams 2018-01-24 10:42:11 -07:00 committed by David Disseldorp
parent d4f7d9e08c
commit c890011a76

View File

@ -1303,7 +1303,7 @@ static int virusfilter_vfs_close(
const char *cwd_fname = handle->conn->connectpath;
struct virusfilter_config *config = NULL;
char *fname = fsp->fsp_name->base_name = NULL;
char *fname = fsp->fsp_name->base_name;
int close_result = -1;
int close_errno = 0;
virusfilter_result scan_result;