s4:auth/gensec/schannel: initialize struct schannel_state to zero
authorStefan Metzmacher <metze@samba.org>
Mon, 27 Feb 2012 14:20:45 +0000 (15:20 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 2 Mar 2012 06:07:10 +0000 (07:07 +0100)
metze

source4/auth/gensec/schannel.c

index 4c846c02c8f4311c94fc6d78fd3d16584c0152af..2465e53bff2b87504a0a6ea8d4f9c91aca2d2e51 100644 (file)
@@ -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;