mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-26 09:35:23 +00:00
Make sure the first pbuf queued on an ARP entry is properly ref counted.
This commit is contained in:
parent
b9ebcd7738
commit
36df79b207
@ -755,6 +755,7 @@ err_t etharp_query(struct netif *netif, struct ip_addr *ipaddr, struct pbuf *q)
|
|||||||
/* queue packet ... */
|
/* queue packet ... */
|
||||||
if (arp_table[i].p == NULL) {
|
if (arp_table[i].p == NULL) {
|
||||||
/* ... in the empty queue */
|
/* ... in the empty queue */
|
||||||
|
pbuf_ref(p);
|
||||||
arp_table[i].p = p;
|
arp_table[i].p = p;
|
||||||
} else {
|
} else {
|
||||||
/* ... at tail of non-empty queue */
|
/* ... at tail of non-empty queue */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user