[IPHLPAPI] Fix for hasArp which crashes some iphlpapi tests. (#3216)

CORE-16513
This commit is contained in:
Doug Lyons 2020-09-22 08:50:41 -05:00 committed by GitHub
parent e45bacda07
commit 90be2f4e1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -149,7 +149,8 @@ BOOL hasArp( HANDLE tcpFile, TDIEntityID *arp_maybe ) {
NULL );
if( !NT_SUCCESS(status) ) return FALSE;
return (type & AT_ARP);
/* AT_ARP corresponds to an individual TDI entity type */
return (type == AT_ARP);
}
static NTSTATUS getInterfaceInfoSet( HANDLE tcpFile,