summaryrefslogtreecommitdiffstats
path: root/source3
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2014-11-21 14:54:17 +0100
committerJeremy Allison <jra@samba.org>2014-11-21 22:47:05 +0100
commit1076e4e4e2a2b6238116bd860b03a9dcc8a151f8 (patch)
tree571a3fb139d731ca1a1f4703194bcf3ea61e6e9d /source3
parent1160fcfe3d97644a6bcfa9ee687fd7dfca58e812 (diff)
downloadsamba-1076e4e4e2a2b6238116bd860b03a9dcc8a151f8.tar.gz
samba-1076e4e4e2a2b6238116bd860b03a9dcc8a151f8.tar.xz
samba-1076e4e4e2a2b6238116bd860b03a9dcc8a151f8.zip
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 <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/modules/vfs_streams_xattr.c2
1 files changed, 1 insertions, 1 deletions
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);