6lowpan: fix hop limit compression
Add missing pointer shift for the 'default' case. Signed-off-by: Alexander Smirnov <alex.bluesman.smirnov@gmail.com> Cc: Tony Cheneau <tony.cheneau+zigbeedev@amnesiak.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c5d3687f6c
commit
5c00c0cba5
@ -492,6 +492,7 @@ static int lowpan_header_create(struct sk_buff *skb,
|
||||
break;
|
||||
default:
|
||||
*hc06_ptr = hdr->hop_limit;
|
||||
hc06_ptr += 1;
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user