Browse Source

Make sure the first pbuf queued on an ARP entry is properly ref counted.

STABLE-2_1_x
softins 22 years ago
parent
commit
36df79b207
  1. 1
      src/netif/etharp.c

1
src/netif/etharp.c

@ -755,6 +755,7 @@ err_t etharp_query(struct netif *netif, struct ip_addr *ipaddr, struct pbuf *q)
/* queue packet ... */
if (arp_table[i].p == NULL) {
/* ... in the empty queue */
pbuf_ref(p);
arp_table[i].p = p;
} else {
/* ... at tail of non-empty queue */

Loading…
Cancel
Save