idmap: Initialize struct idmap_ad_context
authorVolker Lendecke <vl@samba.org>
Tue, 7 Mar 2023 15:08:18 +0000 (16:08 +0100)
committerRalph Boehme <slow@samba.org>
Wed, 29 Mar 2023 17:55:50 +0000 (17:55 +0000)
We'll add another pointer next that should be initialized to NULL

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/winbindd/idmap_ad.c

index d08052e8a971685f31139133dc8a938cc6867eae..58793162d28296f57fd0dbe42fb55d38ba7a8a66 100644 (file)
@@ -444,7 +444,7 @@ static NTSTATUS idmap_ad_context_create(TALLOC_CTX *mem_ctx,
        NTSTATUS status;
        TLDAPRC rc;
 
-       ctx = talloc(mem_ctx, struct idmap_ad_context);
+       ctx = talloc_zero(mem_ctx, struct idmap_ad_context);
        if (ctx == NULL) {
                return NT_STATUS_NO_MEMORY;
        }