r15225: Use talloc_zero() to avoid use of uninitialised values later on.
authorAndrew Bartlett <abartlet@samba.org>
Tue, 25 Apr 2006 06:53:28 +0000 (06:53 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:04:20 +0000 (14:04 -0500)
Andrew Bartlett

source/libcli/finddcs.c

index 9ed20b77ba00fdce703e79865fd9b72277cd2c12..aa755b57498e51de31dc5fcde50a75aab17a2fdb 100644 (file)
@@ -70,7 +70,7 @@ struct composite_context *finddcs_send(TALLOC_CTX *mem_ctx,
        struct finddcs_state *state;
        struct nbt_name name;
 
-       result = talloc(mem_ctx, struct composite_context);
+       result = talloc_zero(mem_ctx, struct composite_context);
        if (result == NULL) goto failed;
        result->state = COMPOSITE_STATE_IN_PROGRESS;
        result->async.fn = NULL;