clear uipbuf including its attributes before creating a packet

This commit is contained in:
Joakim Eriksson 2018-11-02 15:32:03 +01:00
parent 93c7aae49e
commit ecb214bb2d

View File

@ -1787,6 +1787,9 @@ input(void)
return; return;
} }
/* Clear uipbuf and set default attributes */
uipbuf_clear();
/* This is default uip_buf since we assume that this is not fragmented */ /* This is default uip_buf since we assume that this is not fragmented */
buffer = (uint8_t *)UIP_IP_BUF; buffer = (uint8_t *)UIP_IP_BUF;
@ -1821,7 +1824,6 @@ input(void)
} }
buffer = frag_info[frag_context].first_frag; buffer = frag_info[frag_context].first_frag;
break; break;
case SICSLOWPAN_DISPATCH_FRAGN: case SICSLOWPAN_DISPATCH_FRAGN:
/* /*