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:
Martine Lenders 2019-01-25 14:38:34 +01:00 committed by GitHub
commit 892c7a5430
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,6 +73,7 @@ void gnrc_sixlowpan_dispatch_recv(gnrc_pktsnip_t *pkt, void *context,
ptr = ptr->next) {
if ((ptr->next) && (ptr->next->type == GNRC_NETTYPE_NETIF)) {
type = ptr->type;
break;
}
}
#else /* MODULE_GNRC_IPV6 */