Author: abartlet
Date: 2006-04-25 06:53:28 +0000 (Tue, 25 Apr 2006)
New Revision: 15225

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=15225

Log:
Use talloc_zero() to avoid use of uninitialised values later on.

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/libcli/finddcs.c


Changeset:
Modified: branches/SAMBA_4_0/source/libcli/finddcs.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/finddcs.c  2006-04-24 22:50:19 UTC (rev 
15224)
+++ branches/SAMBA_4_0/source/libcli/finddcs.c  2006-04-25 06:53:28 UTC (rev 
15225)
@@ -70,7 +70,7 @@
        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;

Reply via email to