lowpan6.c: fix unuinitialized variable if LWIP_6LOWPAN_IPHC==0

This commit is contained in:
Georgy Komarov 2019-11-15 11:34:08 +01:00 committed by Simon Goldschmidt
parent fe25ca66af
commit eaa8f34f6a

View File

@ -383,6 +383,7 @@ lowpan6_frag(struct netif *netif, struct pbuf *p, const struct lowpan6_link_addr
#else /* LWIP_6LOWPAN_IPHC */
/* Send uncompressed IPv6 header with appropriate dispatch byte. */
lowpan6_header_len = 1;
hidden_header_len = 0;
buffer[ieee_header_len] = 0x41; /* IPv6 dispatch */
#endif /* LWIP_6LOWPAN_IPHC */