mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
libcli:security: Do not duplicate invalid aces
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
parent
eabe6d534c
commit
e7a8e4e643
@ -58,6 +58,10 @@ struct security_acl *security_acl_dup(TALLOC_CTX *mem_ctx,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (oacl->aces == NULL && oacl->num_aces > 0) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
nacl = talloc (mem_ctx, struct security_acl);
|
||||
if (nacl == NULL) {
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user