mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
auth:gensec: Make sure we zero the checksum after use
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
e9ee003b9e
commit
b451168d72
@ -347,6 +347,8 @@ static NTSTATUS netsec_incoming_packet(struct schannel_state *state,
|
|||||||
|
|
||||||
netsec_do_seq_num(state, checksum, checksum_length, seq_num);
|
netsec_do_seq_num(state, checksum, checksum_length, seq_num);
|
||||||
|
|
||||||
|
ZERO_ARRAY(checksum);
|
||||||
|
|
||||||
ret = memcmp(seq_num, sig->data+8, 8);
|
ret = memcmp(seq_num, sig->data+8, 8);
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
dump_data_pw("calc seq num:", seq_num, 8);
|
dump_data_pw("calc seq num:", seq_num, 8);
|
||||||
|
Loading…
Reference in New Issue
Block a user