From 1076e4e4e2a2b6238116bd860b03a9dcc8a151f8 Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Fri, 21 Nov 2014 14:54:17 +0100 Subject: vfs_streams_xattr: initialize pointer Intitialize pointer to NULL, otherwise we talloc_free() an unitialized pointer in the error code path. Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- source3/modules/vfs_streams_xattr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/modules') diff --git a/source3/modules/vfs_streams_xattr.c b/source3/modules/vfs_streams_xattr.c index 6314442515..f65ccc87ed 100644 --- a/source3/modules/vfs_streams_xattr.c +++ b/source3/modules/vfs_streams_xattr.c @@ -533,7 +533,7 @@ static int streams_xattr_unlink(vfs_handle_struct *handle, { NTSTATUS status; int ret = -1; - char *xattr_name; + char *xattr_name = NULL; if (!is_ntfs_stream_smb_fname(smb_fname)) { return SMB_VFS_NEXT_UNLINK(handle, smb_fname); -- cgit