summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devices.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/devices.c b/devices.c
index 58c8054..00bf59d 100644
--- a/devices.c
+++ b/devices.c
@@ -128,7 +128,7 @@ int get_macs(int sockfd, char *name, int name_len, unsigned char *mac) {
strncpy(name, int_cursor->ifa_name, name_len - 1);
name[name_len - 1] = '\0';
int_cursor = int_cursor->ifa_next;
- if (get_device_mac(sockfd, name, mac)) {
+ if (get_device_mac(sockfd, name, mac)!=-1) {
return 1;
}
}