Commit ed79dd21 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

iphlpapi: For unknown interface types set the physical address length to zero.

parent c8bfc8d6
......@@ -498,7 +498,7 @@ static DWORD getInterfacePhysicalByName(const char *name, PDWORD len, PBYTE addr
break;
#endif
default:
addrLen = min(MAX_INTERFACE_PHYSADDR, sizeof(ifr.ifr_hwaddr.sa_data));
addrLen = 0;
*type = MIB_IF_TYPE_OTHER;
}
if (addrLen > *len) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment