summaryrefslogtreecommitdiff
path: root/auth
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2018-10-30 17:08:35 +0100
committerJeremy Allison <jra@samba.org>2019-02-27 01:35:19 +0100
commitb451168d72ec0026dd4ce36a3f2913a5842ba84d (patch)
tree52e694ba9beff3792a8928140149788676ce6333 /auth
parente9ee003b9e157270a8499c88721943d49a505d7f (diff)
downloadsamba-b451168d72ec0026dd4ce36a3f2913a5842ba84d.tar.gz
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>
Diffstat (limited to 'auth')
-rw-r--r--auth/gensec/schannel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/auth/gensec/schannel.c b/auth/gensec/schannel.c
index 364a0fcc186..441801bac47 100644
--- a/auth/gensec/schannel.c
+++ b/auth/gensec/schannel.c
@@ -347,6 +347,8 @@ static NTSTATUS netsec_incoming_packet(struct schannel_state *state,
netsec_do_seq_num(state, checksum, checksum_length, seq_num);
+ ZERO_ARRAY(checksum);
+
ret = memcmp(seq_num, sig->data+8, 8);
if (ret != 0) {
dump_data_pw("calc seq num:", seq_num, 8);