From 36df79b2078117677de03bba93878c63dd8378ac Mon Sep 17 00:00:00 2001 From: softins Date: Fri, 20 Aug 2004 09:17:52 +0000 Subject: [PATCH] Make sure the first pbuf queued on an ARP entry is properly ref counted. --- src/netif/etharp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/netif/etharp.c b/src/netif/etharp.c index a3fbbf2a..17930411 100644 --- a/src/netif/etharp.c +++ b/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 */