summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2006-04-25 06:53:28 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:04:20 -0500
commitcc11de1e3e938fc65e99e2c597e6f25659371e87 (patch)
treed93b742d573dd69b0ab271008d82cad406eaf73a
parent847e80dee9c405f021c67d5ffb09804751ea2be7 (diff)
downloadsamba-cc11de1e3e938fc65e99e2c597e6f25659371e87.tar.gz
samba-cc11de1e3e938fc65e99e2c597e6f25659371e87.tar.bz2
samba-cc11de1e3e938fc65e99e2c597e6f25659371e87.zip
r15225: Use talloc_zero() to avoid use of uninitialised values later on.
Andrew Bartlett (This used to be commit e312cddafd7e00680dd059fad7ef7e5ecdbbb484)
-rw-r--r--source4/libcli/finddcs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/libcli/finddcs.c b/source4/libcli/finddcs.c
index 9ed20b77ba..aa755b5749 100644
--- a/source4/libcli/finddcs.c
+++ b/source4/libcli/finddcs.c
@@ -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;