From dc8e681755242b21bfb0e2d0cade633542ba7c81 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 23 Oct 2009 17:26:58 +0200 Subject: [PATCH] libcli/auth: initialize creds in netlogon_creds_client_init_session_key() metze --- libcli/auth/credentials.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libcli/auth/credentials.c b/libcli/auth/credentials.c index 87d1866ca49..667a2fac2de 100644 --- a/libcli/auth/credentials.c +++ b/libcli/auth/credentials.c @@ -248,8 +248,9 @@ struct netlogon_creds_CredentialState *netlogon_creds_client_init(TALLOC_CTX *me struct netlogon_creds_CredentialState *netlogon_creds_client_init_session_key(TALLOC_CTX *mem_ctx, const uint8_t session_key[16]) { - struct netlogon_creds_CredentialState *creds = talloc(mem_ctx, struct netlogon_creds_CredentialState); - + struct netlogon_creds_CredentialState *creds; + + creds = talloc_zero(mem_ctx, struct netlogon_creds_CredentialState); if (!creds) { return NULL; } -- 2.34.1