mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-19 05:10:40 +00:00
parent
bc1da0bddb
commit
488d4ad246
@ -410,7 +410,7 @@ icmp6_send_response_with_addrs_and_netif(struct pbuf *p, u8_t code, u32_t data,
|
|||||||
offset = sizeof(struct icmp6_hdr);
|
offset = sizeof(struct icmp6_hdr);
|
||||||
while (p && datalen) {
|
while (p && datalen) {
|
||||||
u16_t len = LWIP_MIN(datalen, p->len);
|
u16_t len = LWIP_MIN(datalen, p->len);
|
||||||
err_t res = pbuf_take_at(q, p->payload, datalen, offset);
|
err_t res = pbuf_take_at(q, p->payload, len, offset);
|
||||||
if (res != ERR_OK) break;
|
if (res != ERR_OK) break;
|
||||||
datalen -= len;
|
datalen -= len;
|
||||||
offset += len;
|
offset += len;
|
||||||
|
Loading…
Reference in New Issue
Block a user