]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: VFS: cap. Fixup mistake using the wrong parameter to capencode.
authorJeremy Allison <jra@samba.org>
Tue, 26 May 2020 18:34:08 +0000 (11:34 -0700)
committerJeremy Allison <jra@samba.org>
Tue, 26 May 2020 21:35:55 +0000 (21:35 +0000)
Caught by Coverity.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue May 26 21:35:55 UTC 2020 on sn-devel-184

source3/modules/vfs_cap.c

index c713d30301e9ebd472ab7529c294c95b7ad7993f..17ebb786822e4ffb3f5fe6b34c7667d7f7ebf52c 100644 (file)
@@ -159,7 +159,7 @@ static int cap_openat(vfs_handle_struct *handle,
        int ret;
        int saved_errno = 0;
 
-       cappath = capencode(talloc_tos(), smb_fname->base_name);
+       cappath = capencode(talloc_tos(), smb_fname_in->base_name);
        if (cappath == NULL) {
                errno = ENOMEM;
                return -1;