get_adapter_index_from_addr: correct return value if adapter not found

This commit is contained in:
goldsimon 2010-03-09 10:52:25 +00:00
parent bb3aa84605
commit be3fde3840
1 changed files with 1 additions and 1 deletions

View File

@ -60,5 +60,5 @@ get_adapter_index_from_addr(U32 netaddr, char *guid, U32 guid_len)
printf("Network address not found.\n");
pcap_freealldevs(alldevs);
return index;
return -1;
}