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>
This commit is contained in:
Pascal Quantin 2016-09-22 22:09:13 +02:00 committed by Michael Mann
parent 76d97c39c9
commit 0b1fd7e8fb
1 changed files with 2 additions and 0 deletions

View File

@ -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 */