mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-26 03:16:18 +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);
|
||||
while (p && datalen) {
|
||||
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;
|
||||
datalen -= len;
|
||||
offset += len;
|
||||
|
Loading…
Reference in New Issue
Block a user