From 327190893f5f3352a2e6abc4872b54092ee7de68 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 25 Oct 2017 19:55:32 +0200 Subject: s3:modules: Check correct variable for NULL in posixacl_xattr BUG: https://bugzilla.samba.org/show_bug.cgi?id=13101 Signed-off-by: Andreas Schneider Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Fri Oct 27 04:54:22 CEST 2017 on sn-devel-144 --- source3/modules/posixacl_xattr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/modules/posixacl_xattr.c') diff --git a/source3/modules/posixacl_xattr.c b/source3/modules/posixacl_xattr.c index 759d372facb..8f6f365bff9 100644 --- a/source3/modules/posixacl_xattr.c +++ b/source3/modules/posixacl_xattr.c @@ -384,7 +384,7 @@ SMB_ACL_T posixacl_xattr_acl_get_file(vfs_handle_struct *handle, TALLOC_CTX *frame = talloc_stackframe(); struct smb_filename *smb_fname_tmp = cp_smb_filename_nostream(frame, smb_fname); - if (smb_fname == NULL) { + if (smb_fname_tmp == NULL) { errno = ENOMEM; ret = -1; } else { -- cgit v1.2.1