summaryrefslogtreecommitdiff
path: root/source3/modules/posixacl_xattr.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2017-10-25 19:55:32 +0200
committerJeremy Allison <jra@samba.org>2017-10-27 04:54:22 +0200
commit327190893f5f3352a2e6abc4872b54092ee7de68 (patch)
treee7d96075ecf4998b5fb905e109afafad0e87e89f /source3/modules/posixacl_xattr.c
parent5274beba4cf722a34403dc07bf287815a6df6281 (diff)
downloadsamba-327190893f5f3352a2e6abc4872b54092ee7de68.tar.gz
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 <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Fri Oct 27 04:54:22 CEST 2017 on sn-devel-144
Diffstat (limited to 'source3/modules/posixacl_xattr.c')
-rw-r--r--source3/modules/posixacl_xattr.c2
1 files changed, 1 insertions, 1 deletions
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 {