mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-24 15:14:06 +00:00
Fixed wrong argument to find_entry() in etharp_query().
This commit is contained in:
parent
16a7a8258f
commit
5c7a70df28
@ -699,7 +699,7 @@ err_t etharp_query(struct netif *netif, struct ip_addr *ipaddr, struct pbuf *q)
|
||||
result = etharp_request(netif, ipaddr);
|
||||
|
||||
/* 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? */
|
||||
if (i < 0) return (err_t)i;
|
||||
|
Loading…
Reference in New Issue
Block a user