Fixed wrong argument to find_entry() in etharp_query().

This commit is contained in:
likewise 2004-05-06 02:55:53 +00:00
parent 16a7a8258f
commit 5c7a70df28

View File

@ -699,7 +699,7 @@ err_t etharp_query(struct netif *netif, struct ip_addr *ipaddr, struct pbuf *q)
result = etharp_request(netif, ipaddr); result = etharp_request(netif, ipaddr);
/* find entry in ARP cache */ /* find entry in ARP cache */
i = find_entry(&arp_table[i].ipaddr, q?ETHARP_CREATE:0); i = find_entry(ipaddr, q?ETHARP_CREATE:0);
/* could not find or create entry? */ /* could not find or create entry? */
if (i < 0) return (err_t)i; if (i < 0) return (err_t)i;