From e00162301b243aff8d0e2760367243edf222a150 Mon Sep 17 00:00:00 2001 From: Michael Mann Date: Wed, 1 Nov 2017 07:45:42 -0400 Subject: Ensure endpoint members of packet_info structure are initialized in packet.c Change-Id: I4c7a4f9888c8bdc87ded88fa997aa2aad9530fd7 Reviewed-on: https://code.wireshark.org/review/24218 Reviewed-by: Michael Mann --- epan/packet.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/epan/packet.c b/epan/packet.c index b44a58b0e8..25c4d1b7af 100644 --- a/epan/packet.c +++ b/epan/packet.c @@ -544,6 +544,8 @@ dissect_record(epan_dissect_t *edt, int file_type_subtype, edt->pi.ctype = CT_NONE; edt->pi.noreassembly_reason = ""; edt->pi.ptype = PT_NONE; + edt->pi.use_endpoint = FALSE; + edt->pi.conv_endpoint = NULL; edt->pi.p2p_dir = P2P_DIR_UNKNOWN; edt->pi.link_dir = LINK_DIR_UNKNOWN; edt->pi.layers = wmem_list_new(edt->pi.pool); @@ -610,6 +612,8 @@ dissect_file(epan_dissect_t *edt, struct wtap_pkthdr *phdr, edt->pi.ctype = CT_NONE; edt->pi.noreassembly_reason = ""; edt->pi.ptype = PT_NONE; + edt->pi.use_endpoint = FALSE; + edt->pi.conv_endpoint = NULL; edt->pi.p2p_dir = P2P_DIR_UNKNOWN; edt->pi.link_dir = LINK_DIR_UNKNOWN; edt->pi.layers = wmem_list_new(edt->pi.pool); -- cgit v1.2.3