Merge pull request #10866 from miri64/gnrc_sixlowpan/fix/type-finding-loop
gnrc_sixlowpan: stop type-finding loop when type is found
This commit is contained in:
commit
892c7a5430
@ -73,6 +73,7 @@ void gnrc_sixlowpan_dispatch_recv(gnrc_pktsnip_t *pkt, void *context,
|
|||||||
ptr = ptr->next) {
|
ptr = ptr->next) {
|
||||||
if ((ptr->next) && (ptr->next->type == GNRC_NETTYPE_NETIF)) {
|
if ((ptr->next) && (ptr->next->type == GNRC_NETTYPE_NETIF)) {
|
||||||
type = ptr->type;
|
type = ptr->type;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else /* MODULE_GNRC_IPV6 */
|
#else /* MODULE_GNRC_IPV6 */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user