s3:idmap_tdb2: talloc_zero (instead of talloc) the idmap_tdb2_context
authorMichael Adam <obnox@samba.org>
Wed, 16 Jun 2010 20:36:33 +0000 (22:36 +0200)
committerMichael Adam <obnox@samba.org>
Sat, 14 Aug 2010 00:10:45 +0000 (02:10 +0200)
source3/winbindd/idmap_tdb2.c

index c5992d45d0633d36ae8ede35fc6063949a8b844c..9e29f5822d778b2249a3250823f38933a301811f 100644 (file)
@@ -267,7 +267,7 @@ static NTSTATUS idmap_tdb2_db_init(struct idmap_domain *dom,
        struct idmap_tdb2_context *ctx;
        NTSTATUS status;
 
        struct idmap_tdb2_context *ctx;
        NTSTATUS status;
 
-       ctx = talloc(dom, struct idmap_tdb2_context);
+       ctx = talloc_zero(dom, struct idmap_tdb2_context);
        if ( ! ctx) {
                DEBUG(0, ("Out of memory!\n"));
                return NT_STATUS_NO_MEMORY;
        if ( ! ctx) {
                DEBUG(0, ("Out of memory!\n"));
                return NT_STATUS_NO_MEMORY;