summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libcli/security/security_descriptor.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libcli/security/security_descriptor.c b/libcli/security/security_descriptor.c
index b77a281852..4e67e0a96b 100644
--- a/libcli/security/security_descriptor.c
+++ b/libcli/security/security_descriptor.c
@@ -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;