bugfix for udpv6 recv fail for 2.0.3

This commit is contained in:
xueyunfei
2020-10-22 11:32:46 +08:00
parent db9134beab
commit 65b6b27a40
+1 -1
View File
@@ -1795,13 +1795,13 @@ nd6_queue_packet(s8_t neighbor_index, struct pbuf *q)
#endif /* LWIP_ND6_QUEUEING */
p = pbuf_alloc(PBUF_LINK, q->tot_len, PBUF_RAM);
}
#endif /* ESP_ND6_QUEUEING */
if (p != NULL) {
if (pbuf_copy(p, q) != ERR_OK) {
pbuf_free(p);
p = NULL;
}
}
#endif
} else {
/* referencing the old pbuf is enough */
p = q;