forked from osmocom/wireshark
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:
parent
76d97c39c9
commit
0b1fd7e8fb
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue