Commit a9328088 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

dnsapi: The ttl value should be ignored when comparing dns records.

parent c8a6b63d
......@@ -134,7 +134,6 @@ BOOL WINAPI DnsRecordCompare( PDNS_RECORD r1, PDNS_RECORD r2 )
if (r1->wType != r2->wType ||
r1->wDataLength != r2->wDataLength ||
r1->Flags.DW != r2->Flags.DW ||
r1->dwTtl != r2->dwTtl ||
r1->dwReserved != r2->dwReserved) return FALSE;
wide = (r1->Flags.S.CharSet == DnsCharSetUnicode) ? TRUE : FALSE;
......
......@@ -65,6 +65,9 @@ static void test_DnsRecordCompare( void )
r1.Flags.S.CharSet = DnsCharSetAnsi;
ok( pDnsRecordCompare( (PDNS_RECORD)&r1, (PDNS_RECORD)&r2 ) == TRUE, "failed unexpectedly\n" );
r1.dwTtl = 0;
ok( pDnsRecordCompare( (PDNS_RECORD)&r1, (PDNS_RECORD)&r2 ) == TRUE, "failed unexpectedly\n" );
r2.Data.A.IpAddress = 0;
ok( pDnsRecordCompare( (PDNS_RECORD)&r1, (PDNS_RECORD)&r2 ) == FALSE, "succeeded unexpectedly\n" );
}
......
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