forked from osmocom/wireshark
dcerpc: correctly initialize certain struct fields
Bug: 10482 Change-Id: I4d39d6a79d4ab89685a17a0c622c6181e4fada3d Reviewed-on: https://code.wireshark.org/review/4233 Reviewed-by: Evan Huus <eapache@gmail.com>
This commit is contained in:
parent
e483772d3f
commit
b8065a5b7d
|
@ -5487,21 +5487,17 @@ dissect_dcerpc_dg_resp(tvbuff_t *tvb, int offset, packet_info *pinfo,
|
|||
matched_key.call_id = hdr->seqnum;
|
||||
value = (dcerpc_call_value *)g_hash_table_lookup(dcerpc_matched, &matched_key);
|
||||
if (!value) {
|
||||
value = wmem_new(wmem_packet_scope(), dcerpc_call_value);
|
||||
value = wmem_new0(wmem_packet_scope(), dcerpc_call_value);
|
||||
value->uuid = hdr->if_id;
|
||||
value->ver = hdr->if_ver;
|
||||
value->object_uuid = hdr->obj_id;
|
||||
value->opnum = hdr->opnum;
|
||||
value->req_frame = 0;
|
||||
value->rep_frame = pinfo->fd->num;
|
||||
value->se_data = NULL;
|
||||
value->private_data = NULL;
|
||||
}
|
||||
|
||||
di = wmem_new0(wmem_packet_scope(), dcerpc_info);
|
||||
di->dcerpc_procedure_name = "";
|
||||
di->conv = conv;
|
||||
di->call_id = 0;
|
||||
di->smb_fid = -1;
|
||||
di->ptype = PDU_RESP;
|
||||
di->call_data = value;
|
||||
|
|
Loading…
Reference in New Issue