Fall back to MIB method if we can't get netmasks
Misses IPv6 addresses, but at least doesn't break everything. [Fixes #6525]unstable
parent
d3a87b59aa
commit
4ed55dc958
Binary file not shown.
|
@ -221,6 +221,9 @@ DWORD get_interfaces_windows(Remote *remote, Packet *response) {
|
||||||
// return IPv6 addresses. Older versions (e.g. NT4, 2k)
|
// return IPv6 addresses. Older versions (e.g. NT4, 2k)
|
||||||
// don't have GetAdapterAddresses, so they will have fallen
|
// don't have GetAdapterAddresses, so they will have fallen
|
||||||
// through earlier to the MIB implementation.
|
// through earlier to the MIB implementation.
|
||||||
|
free(entries);
|
||||||
|
free(pAdapters);
|
||||||
|
return get_interfaces_windows_mib(remote, response);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (prefixes[prefixes_cnt]) {
|
if (prefixes[prefixes_cnt]) {
|
||||||
|
|
Loading…
Reference in New Issue