r9510: fix the memory tree
authorStefan Metzmacher <metze@samba.org>
Tue, 23 Aug 2005 09:29:32 +0000 (09:29 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:34:24 +0000 (13:34 -0500)
metze
(This used to be commit 6d412cf0a4186ec04cee61dd5387903de051fde7)

source4/libcli/security/dom_sid.c

index f457900efc04a6c4717865ca5390ccb78de92f53..c19959f8ae595f776d84a0e1e2710bf3e571870a 100644 (file)
@@ -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;
        }