mirror of
https://github.com/ep00ch/lwip-contrib-mac.git
synced 2024-06-11 09:29:40 +00:00
get_adapter_index_from_addr: correct return value if adapter not found
This commit is contained in:
parent
bb3aa84605
commit
be3fde3840
|
@ -60,5 +60,5 @@ get_adapter_index_from_addr(U32 netaddr, char *guid, U32 guid_len)
|
||||||
printf("Network address not found.\n");
|
printf("Network address not found.\n");
|
||||||
|
|
||||||
pcap_freealldevs(alldevs);
|
pcap_freealldevs(alldevs);
|
||||||
return index;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user