mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/udpv6_fail_to_receive_data_for_the_first_time_for_3.1' into 'release/v3.1'
lw-ip:udpv6 failed to receive data for the first time for 3.1(backport 3.1) See merge request espressif/esp-idf!10994
This commit is contained in:
commit
2060ee9a54
@ -1655,13 +1655,13 @@ nd6_queue_packet(s8_t neighbor_index, struct pbuf * q)
|
|||||||
#endif /* LWIP_ND6_QUEUEING */
|
#endif /* LWIP_ND6_QUEUEING */
|
||||||
p = pbuf_alloc(PBUF_LINK, q->tot_len, PBUF_RAM);
|
p = pbuf_alloc(PBUF_LINK, q->tot_len, PBUF_RAM);
|
||||||
}
|
}
|
||||||
|
#endif /* ESP_ND6_QUEUEING */
|
||||||
if (p != NULL) {
|
if (p != NULL) {
|
||||||
if (pbuf_copy(p, q) != ERR_OK) {
|
if (pbuf_copy(p, q) != ERR_OK) {
|
||||||
pbuf_free(p);
|
pbuf_free(p);
|
||||||
p = NULL;
|
p = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
} else {
|
} else {
|
||||||
/* referencing the old pbuf is enough */
|
/* referencing the old pbuf is enough */
|
||||||
p = q;
|
p = q;
|
||||||
|
Loading…
Reference in New Issue
Block a user