The branch, master has been updated via 310fff0 s3:sharesec: also initialize pgranted if get_share_security() returns NULL from 2dfc898 s3: Follow the TALLOC_FREE convention in source3
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log ----------------------------------------------------------------- commit 310fff02a68d87a8af3e2cff0560669eb8bb091a Author: Stefan Metzmacher <me...@samba.org> Date: Tue Jul 5 16:59:41 2011 +0200 s3:sharesec: also initialize pgranted if get_share_security() returns NULL metze Autobuild-User: Stefan Metzmacher <me...@samba.org> Autobuild-Date: Wed Jul 6 12:54:30 CEST 2011 on sn-devel-104 ----------------------------------------------------------------------- Summary of changes: source3/lib/sharesec.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) Changeset truncated at 500 lines: diff --git a/source3/lib/sharesec.c b/source3/lib/sharesec.c index 0c06d7b..66e3401 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; } -- Samba Shared Repository