1
0
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:
Brendan Powers 2010-05-25 16:14:37 -04:00 committed by Matthias Dieter Wallnöfer
parent cadca1f6ba
commit d3a99579f6

View File

@ -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;