projects
/
oweals
/
nmrpflash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
810dbd5
)
Fix get_intf_info NULL arg
author
Joseph C. Lehner
<joseph.c.lehner@gmail.com>
Sun, 19 Feb 2017 10:12:22 +0000
(11:12 +0100)
committer
Joseph C. Lehner
<joseph.c.lehner@gmail.com>
Sun, 19 Feb 2017 10:12:22 +0000
(11:12 +0100)
ethsock.c
patch
|
blob
|
history
diff --git
a/ethsock.c
b/ethsock.c
index 5798d1cdf5f391ad1eb0ccb1e47bc2dd70421455..1cbc5da9befb77e268aedf40077e067e10154424 100644
(file)
--- 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)