s3:rpc_server: 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 07:48:23 +0000 (08:48 +0100)
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Mar  2 08:48:23 CET 2012 on sn-devel-104

source3/rpc_server/srv_pipe.c

index 9be2bc8d729b1c610860b555606d5d6daf306ade..4330a7ddc31145d073715d94fcd0c9e830c5d2d5 100644 (file)
@@ -479,14 +479,13 @@ static bool pipe_schannel_auth_bind(struct pipes_struct *p,
                return False;
        }
 
-       schannel_auth = talloc(p, struct schannel_state);
+       schannel_auth = talloc_zero(p, struct schannel_state);
        if (!schannel_auth) {
                TALLOC_FREE(creds);
                return False;
        }
 
        schannel_auth->state = SCHANNEL_STATE_START;
-       schannel_auth->seq_num = 0;
        schannel_auth->initiator = false;
        schannel_auth->creds = creds;