summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/libcli/security/dom_sid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/libcli/security/dom_sid.c b/source4/libcli/security/dom_sid.c
index f457900efc..c19959f8ae 100644
--- a/source4/libcli/security/dom_sid.c
+++ b/source4/libcli/security/dom_sid.c
@@ -122,7 +122,7 @@ struct dom_sid *dom_sid_parse_talloc(TALLOC_CTX *mem_ctx, const char *sidstr)
return NULL;
}
- ret->sub_auths = talloc_array(mem_ctx, uint32_t, num_sub_auths);
+ ret->sub_auths = talloc_array(ret, uint32_t, num_sub_auths);
if (!ret->sub_auths) {
return NULL;
}