summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-10-23 17:26:58 +0200
committerStefan Metzmacher <metze@samba.org>2009-10-24 11:59:15 +0200
commitdc8e681755242b21bfb0e2d0cade633542ba7c81 (patch)
tree56f1ca15c1c08b10ce7aff69f47a0fef6345808e
parentfab9aff6a20b7dcb5a570fd2a103b5e5da6fea93 (diff)
downloadsamba-dc8e681755242b21bfb0e2d0cade633542ba7c81.tar.gz
samba-dc8e681755242b21bfb0e2d0cade633542ba7c81.tar.bz2
samba-dc8e681755242b21bfb0e2d0cade633542ba7c81.zip
libcli/auth: initialize creds in netlogon_creds_client_init_session_key()
metze
-rw-r--r--libcli/auth/credentials.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libcli/auth/credentials.c b/libcli/auth/credentials.c
index 87d1866ca4..667a2fac2d 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;
}