s3:modules: Check correct variable for NULL in posixacl_xattr
authorAndreas Schneider <asn@samba.org>
Wed, 25 Oct 2017 17:55:32 +0000 (19:55 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 27 Oct 2017 02:54:22 +0000 (04:54 +0200)
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

source3/modules/posixacl_xattr.c

index 759d372facbf1b8164c27dbb75738017468e651b..8f6f365bff969e0bfda384d7451042dc1c6260ea 100644 (file)
@@ -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 {