mirror of
https://github.com/samba-team/samba.git
synced 2025-01-22 22:04:08 +03:00
s3:sharesec: return an error if get_share_security() returns NULL
This indicates an error, as it uses get_share_security_default() if no security descriptor is configured. Jeremy, please check. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Jul 6 15:40:23 CEST 2011 on sn-devel-104
This commit is contained in:
parent
93ad34c4ad
commit
f9601a9180
@ -426,7 +426,7 @@ bool share_access_check(const struct security_token *token,
|
||||
if (pgranted != NULL) {
|
||||
*pgranted = desired_access;
|
||||
}
|
||||
return True;
|
||||
return false;
|
||||
}
|
||||
|
||||
status = se_access_check(psd, token, desired_access, &granted);
|
||||
|
Loading…
x
Reference in New Issue
Block a user