s3:idmap: fix talloc hierarchy in idmap_passdb_domain()
authorMichael Adam <obnox@samba.org>
Wed, 23 Jul 2014 09:42:57 +0000 (11:42 +0200)
committerVolker Lendecke <vl@samba.org>
Fri, 25 Jul 2014 12:18:20 +0000 (14:18 +0200)
(don't init to NULL context - we got one handed in...)

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Fri Jul 25 14:18:20 CEST 2014 on sn-devel-104

source3/winbindd/idmap.c

index dc972fea00eae8806367e26101d380703f8db23e..a8beab738b6eb24c197fa0d1fe3ab149d9d1c69c 100644 (file)
@@ -350,7 +350,7 @@ static struct idmap_domain *idmap_passdb_domain(TALLOC_CTX *mem_ctx)
                return passdb_idmap_domain;
        }
 
-       passdb_idmap_domain = idmap_init_domain(NULL, get_global_sam_name(),
+       passdb_idmap_domain = idmap_init_domain(mem_ctx, get_global_sam_name(),
                                                "passdb", false);
        if (passdb_idmap_domain == NULL) {
                DEBUG(1, ("Could not init passdb idmap domain\n"));