forked from osmocom/wireshark
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>
This commit is contained in:
parent
d2c541af31
commit
6aaae113d5
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue