From f3291db4034476d03e7feec157ad4f24c25546e0 Mon Sep 17 00:00:00 2001 From: "Joseph C. Lehner" Date: Sun, 19 Feb 2017 11:12:22 +0100 Subject: [PATCH] Fix get_intf_info NULL arg --- ethsock.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ethsock.c b/ethsock.c index 5798d1c..1cbc5da 100644 --- a/ethsock.c +++ b/ethsock.c @@ -169,7 +169,6 @@ static bool get_intf_info(const char *intf, uint8_t *hwaddr, bool *bridge) } found = false; - *bridge = false; if (bridge) { *bridge = false; @@ -625,7 +624,6 @@ int ethsock_arp_del(struct ethsock *sock, struct ethsock_arp_undo **undo) static bool get_hwaddr_from_pcap(const pcap_if_t *dev, uint8_t *hwaddr) { - bool is_bridge; #ifndef NMRPFLASH_WINDOWS pcap_addr_t *addr; int i; @@ -646,7 +644,7 @@ static bool get_hwaddr_from_pcap(const pcap_if_t *dev, uint8_t *hwaddr) } #endif - return get_intf_info(dev->name, hwaddr, &is_bridge); + return get_intf_info(dev->name, hwaddr, NULL); } int ethsock_list_all(void) -- 2.25.1