summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-07-05 16:59:41 +0200
committerStefan Metzmacher <metze@samba.org>2011-07-06 12:54:30 +0200
commit310fff02a68d87a8af3e2cff0560669eb8bb091a (patch)
tree77000d96c4ed7bbb904263fcb1d595782801e2a2
parent2dfc898d1a3927fa01de0f2afe72864f30a1ca58 (diff)
downloadsamba-310fff02a68d87a8af3e2cff0560669eb8bb091a.tar.gz
samba-310fff02a68d87a8af3e2cff0560669eb8bb091a.tar.bz2
samba-310fff02a68d87a8af3e2cff0560669eb8bb091a.zip
s3:sharesec: also initialize pgranted if get_share_security() returns NULL
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Jul 6 12:54:30 CEST 2011 on sn-devel-104
-rw-r--r--source3/lib/sharesec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/lib/sharesec.c b/source3/lib/sharesec.c
index 0c06d7bbee..66e3401771 100644
--- a/source3/lib/sharesec.c
+++ b/source3/lib/sharesec.c
@@ -423,6 +423,9 @@ bool share_access_check(const struct security_token *token,
psd = get_share_security(talloc_tos(), sharename, &sd_size);
if (!psd) {
+ if (pgranted != NULL) {
+ *pgranted = desired_access;
+ }
return True;
}