[Bug 4321] NetworkPkg/DnsDxe: Coverity scan flags FORWARD_NULL issues



--- Comment #2 from Veeresh Sangolli <veeresh.sangolli@...> ---
Created attachment 1312
--> https://bugzilla.tianocore.org/attachment.cgi?id=1312&action=edit
Proposed patch to resolve the Forward_Null issue pointed by Coverity for

The function ParseDnsResponse has ASSERT checks on Dns4TokenEntry
and Dns6TokenEntry not being NULL. Both these ASSERT are applicable
only in the DEBUG mode and the code still proceed further after the
if-else blocks and may lead to CRASH.

Hence, for safety add due blocking checks in if as well as else path.

You are receiving this mail because:
You are on the CC list for the bug.