mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
libcli: Fixed a segfault in security_acl_dup when the acl is NULL.
This can happen when duplicating a security descriptor that is missing either sacls or dacls. Signed-off-by: Matthias Dieter Wallnöfer <mdw@samba.org>
This commit is contained in:
parent
cadca1f6ba
commit
d3a99579f6
@ -55,6 +55,10 @@ struct security_acl *security_acl_dup(TALLOC_CTX *mem_ctx,
|
||||
{
|
||||
struct security_acl *nacl;
|
||||
|
||||
if (oacl == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
nacl = talloc (mem_ctx, struct security_acl);
|
||||
if (nacl == NULL) {
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user