diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2016-09-22 22:09:13 +0200 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2016-09-22 21:38:56 +0000 |
commit | 0b1fd7e8fb267c19eebe484db31a7240781a7023 (patch) | |
tree | 84bbb0a2a996df3a6173bf7216f50cf303e958fb /epan/dissectors | |
parent | 76d97c39c9be04ff2ed599cc3d15b7fddbf080f6 (diff) |
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 <pascal.quantin@gmail.com>
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors')
-rw-r--r-- | epan/dissectors/packet-6lowpan.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 */ |