Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SQUASH ME] fix IPv6 header check
Browse files Browse the repository at this point in the history
miri64 committed Mar 24, 2015
1 parent 6ccf41a commit ba23954
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/net/link_layer/ng_slip/ng_slip.c
Original file line number Diff line number Diff line change
@@ -151,7 +151,7 @@ static void _slip_receive(uart_t uart, size_t bytes)

#ifdef MODULE_NG_IPV6

if (ng_ipv6_hdr_get_version((ng_ipv6_hdr_t *)pkt->data) == 6) {
if ((pkt->size >= sizeof(ng_ipv6_hdr_t)) && ng_ipv6_hdr_is_ipv6_hdr(pkt->data)) {
pkt->type = NG_NETTYPE_IPV6;
}

0 comments on commit ba23954

Please sign in to comment.