From: Jeremy Allison Date: Tue, 26 May 2020 18:34:08 +0000 (-0700) Subject: s3: VFS: cap. Fixup mistake using the wrong parameter to capencode. X-Git-Tag: ldb-2.2.0~322 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7754a557d493f0c2af9420c8fa99fb8c2d9ac70c;p=thirdparty%2Fsamba.git s3: VFS: cap. Fixup mistake using the wrong parameter to capencode. Caught by Coverity. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Böhme Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Tue May 26 21:35:55 UTC 2020 on sn-devel-184 --- diff --git a/source3/modules/vfs_cap.c b/source3/modules/vfs_cap.c index c713d30301e..17ebb786822 100644 --- a/source3/modules/vfs_cap.c +++ b/source3/modules/vfs_cap.c @@ -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;