Fall back to MIB method if we can't get netmasks

Misses IPv6 addresses, but at least doesn't break everything.

[Fixes #6525]
unstable
James Lee 2012-03-16 11:29:07 -06:00
parent d3a87b59aa
commit 4ed55dc958
2 changed files with 3 additions and 0 deletions

View File

@ -221,6 +221,9 @@ DWORD get_interfaces_windows(Remote *remote, Packet *response) {
// return IPv6 addresses. Older versions (e.g. NT4, 2k)
// don't have GetAdapterAddresses, so they will have fallen
// through earlier to the MIB implementation.
free(entries);
free(pAdapters);
return get_interfaces_windows_mib(remote, response);
}
if (prefixes[prefixes_cnt]) {