X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=NetworkPkg%2FDnsDxe%2FDnsImpl.c;h=823bcf379295a531e6f9d4cc7cf422e1e67e006d;hp=8725670a8e8a4a51c098dcd7b1e61f067039c021;hb=8339166dd1d8a9b106ee2ee259e5d953d07c5b7c;hpb=f79865264f58cc12e3ace3b83cbea1ee289a5e55 diff --git a/NetworkPkg/DnsDxe/DnsImpl.c b/NetworkPkg/DnsDxe/DnsImpl.c index 8725670a8e..823bcf3792 100644 --- a/NetworkPkg/DnsDxe/DnsImpl.c +++ b/NetworkPkg/DnsDxe/DnsImpl.c @@ -1360,8 +1360,6 @@ ParseDnsResponse ( // Check whether it's the GeneralLookUp querying. // if (Instance->Service->IpVersion == IP_VERSION_4 && Dns4TokenEntry->GeneralLookUp) { - ASSERT (Dns4TokenEntry != NULL); - Dns4RR = Dns4TokenEntry->Token->RspData.GLookupData->RRList; AnswerData = (UINT8 *) AnswerSection + sizeof (*AnswerSection); @@ -1387,8 +1385,6 @@ ParseDnsResponse ( RRCount ++; } else if (Instance->Service->IpVersion == IP_VERSION_6 && Dns6TokenEntry->GeneralLookUp) { - ASSERT (Dns6TokenEntry != NULL); - Dns6RR = Dns6TokenEntry->Token->RspData.GLookupData->RRList; AnswerData = (UINT8 *) AnswerSection + sizeof (*AnswerSection);