From 0b1fd7e8fb267c19eebe484db31a7240781a7023 Mon Sep 17 00:00:00 2001 From: Pascal Quantin Date: Thu, 22 Sep 2016 22:09:13 +0200 Subject: [PATCH] 6LowPAN: initialize interface identifier even when no data-link source is found Bug: 12939 Change-Id: Ib4e8adbff3e335e602da5e6857bfc801601fd25e Reviewed-on: https://code.wireshark.org/review/17871 Reviewed-by: Pascal Quantin Petri-Dish: Pascal Quantin Tested-by: Petri Dish Buildbot Reviewed-by: Michael Mann --- epan/dissectors/packet-6lowpan.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/epan/dissectors/packet-6lowpan.c b/epan/dissectors/packet-6lowpan.c index 4a1b0d1e9a..c130932c6d 100644 --- a/epan/dissectors/packet-6lowpan.c +++ b/epan/dissectors/packet-6lowpan.c @@ -771,6 +771,7 @@ lowpan_dlsrc_to_ifcid(packet_info *pinfo, guint8 *ifcid) return TRUE; } else { /* Failed to find a link-layer source address. */ + memset(ifcid, 0, LOWPAN_IFC_ID_LEN); return FALSE; } } /* lowpan_dlsrc_to_ifcid */ @@ -817,6 +818,7 @@ lowpan_dldst_to_ifcid(packet_info *pinfo, guint8 *ifcid) return TRUE; } else { /* Failed to find a link-layer destination address. */ + memset(ifcid, 0, LOWPAN_IFC_ID_LEN); return FALSE; } } /* lowpan_dldst_to_ifcid */