summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2019-07-31 10:42:24 +0200
committerKarolin Seeger <kseeger@samba.org>2020-01-27 10:53:50 +0000
commit79e7d1328ea9d7495c0761f4b5058736c838d4c3 (patch)
treecb2f43f405039feb62d6414043c07f95b11e14df
parentbbacbd5f3f2f1fc624f057c6e30160fbcfbaba40 (diff)
downloadsamba-79e7d1328ea9d7495c0761f4b5058736c838d4c3.tar.gz
smbd: Fix the build with clang
clang correctly complains that "close_fsp" is used uninitialized if "get_posix_fsp" fails and we end up in "goto out;". BUG: https://bugzilla.samba.org/show_bug.cgi?id=14251 Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit a8a1ca3f83dce6d725392989cbc97271cbf52f4a) Autobuild-User(v4-11-test): Karolin Seeger <kseeger@samba.org> Autobuild-Date(v4-11-test): Mon Jan 27 10:53:50 UTC 2020 on sn-devel-184
-rw-r--r--source3/smbd/trans2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index b0616f15ade..8164c8fd213 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -4848,7 +4848,7 @@ static NTSTATUS smb_query_posix_acl(connection_struct *conn,
unsigned int size_needed = 0;
NTSTATUS status;
bool ok;
- bool close_fsp;
+ bool close_fsp = false;
/*
* Ensure we always operate on a file descriptor, not just