diff options
author | Pascal Quantin <pascal@wireshark.org> | 2019-02-04 18:32:56 +0100 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2019-02-04 21:08:51 +0000 |
commit | 6aaae113d5df1b0cecea0230536ab145c93c97f2 (patch) | |
tree | 75b555f8b098c8dfd1a804ecc0dafe44168185a5 /epan | |
parent | d2c541af314dbb8f7b50a0940db668c1e41654ae (diff) |
SMB2: follow-up of g14d5ab01c0
Put back some code removed in g14d5ab01c0 but that is still required.
Change-Id: I5a2f52a5056e41b3907479dbae55acbc07080ef1
Reviewed-on: https://code.wireshark.org/review/31880
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
Petri-Dish: Pascal Quantin <pascal@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-smb2.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/epan/dissectors/packet-smb2.c b/epan/dissectors/packet-smb2.c index 132c3a9f02..5f82c66eeb 100644 --- a/epan/dissectors/packet-smb2.c +++ b/epan/dissectors/packet-smb2.c @@ -4516,6 +4516,9 @@ dissect_smb2_negotiate_protocol_request(tvbuff_t *tvb, packet_info *pinfo, proto /* compute preauth hash on first pass */ if (!pinfo->fd->visited && ssi) { ssi->preauth_hash_req = (guint8*)wmem_alloc0(wmem_file_scope(), SMB2_PREAUTH_HASH_SIZE); + memset(si->conv->preauth_hash_ses, 0, SMB2_PREAUTH_HASH_SIZE); + memset(si->conv->preauth_hash_con, 0, SMB2_PREAUTH_HASH_SIZE); + si->conv->preauth_hash_current = si->conv->preauth_hash_con; update_preauth_hash(si->conv->preauth_hash_current, tvb); memcpy(ssi->preauth_hash_req, si->conv->preauth_hash_current, SMB2_PREAUTH_HASH_SIZE); } |