summaryrefslogtreecommitdiff
path: root/mactelnet.c
diff options
context:
space:
mode:
Diffstat (limited to 'mactelnet.c')
-rw-r--r--mactelnet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mactelnet.c b/mactelnet.c
index c3ed71d..ca27f15 100644
--- a/mactelnet.c
+++ b/mactelnet.c
@@ -357,7 +357,7 @@ static int find_interface() {
}
/* Ensure that we have mac-address for this interface */
- if (memcmp(interfaces[i].mac_addr, emptymac, ETH_ALEN) == 0) {
+ if (!interfaces[i].has_mac) {
close(testsocket);
continue;
}