1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

s3:rpc_server: initialize struct schannel_state to zero

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Mar  2 08:48:23 CET 2012 on sn-devel-104
This commit is contained in:
Stefan Metzmacher 2012-02-27 15:20:45 +01:00
parent 083d80c502
commit 89b413895b

View File

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