From 93261a118447d06581ed154bf11ca574038d7a00 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 27 Feb 2012 15:20:45 +0100 Subject: [PATCH] s4:auth/gensec/schannel: initialize struct schannel_state to zero metze --- source4/auth/gensec/schannel.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source4/auth/gensec/schannel.c b/source4/auth/gensec/schannel.c index 4c846c02c8f..2465e53bff2 100644 --- a/source4/auth/gensec/schannel.c +++ b/source4/auth/gensec/schannel.c @@ -236,13 +236,12 @@ static NTSTATUS schannel_start(struct gensec_security *gensec_security) { struct schannel_state *state; - state = talloc(gensec_security, struct schannel_state); + state = talloc_zero(gensec_security, struct schannel_state); if (!state) { return NT_STATUS_NO_MEMORY; } state->state = SCHANNEL_STATE_START; - state->seq_num = 0; gensec_security->private_data = state; return NT_STATUS_OK; -- 2.11.4.GIT