projects
/
mirror_edk2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
NetworkPkg: Removing or adding some ASSERT statement
[mirror_edk2.git]
/
NetworkPkg
/
DnsDxe
/
DnsProtocol.c
diff --git
a/NetworkPkg/DnsDxe/DnsProtocol.c
b/NetworkPkg/DnsDxe/DnsProtocol.c
index e7aa227994ed8adc2ec68be46fa427368a13d84e..a3f3de9766197c5a9464a0289997d520a41a3946 100644
(file)
--- a/
NetworkPkg/DnsDxe/DnsProtocol.c
+++ b/
NetworkPkg/DnsDxe/DnsProtocol.c
@@
-462,6
+462,8
@@
Dns4HostNameToIp (
goto ON_EXIT;
\r
}
\r
\r
goto ON_EXIT;
\r
}
\r
\r
+ ASSERT (Packet != NULL);
\r
+
\r
//
\r
// Save the token into the Dns4TxTokens map.
\r
//
\r
//
\r
// Save the token into the Dns4TxTokens map.
\r
//
\r
@@
-635,6
+637,8
@@
Dns4GeneralLookUp (
goto ON_EXIT;
\r
}
\r
\r
goto ON_EXIT;
\r
}
\r
\r
+ ASSERT (Packet != NULL);
\r
+
\r
//
\r
// Save the token into the Dns4TxTokens map.
\r
//
\r
//
\r
// Save the token into the Dns4TxTokens map.
\r
//
\r
@@
-1231,6
+1235,8
@@
Dns6HostNameToIp (
goto ON_EXIT;
\r
}
\r
\r
goto ON_EXIT;
\r
}
\r
\r
+ ASSERT (Packet != NULL);
\r
+
\r
//
\r
// Save the token into the Dns6TxTokens map.
\r
//
\r
//
\r
// Save the token into the Dns6TxTokens map.
\r
//
\r
@@
-1404,6
+1410,8
@@
Dns6GeneralLookUp (
goto ON_EXIT;
\r
}
\r
\r
goto ON_EXIT;
\r
}
\r
\r
+ ASSERT (Packet != NULL);
\r
+
\r
//
\r
// Save the token into the Dns6TxTokens map.
\r
//
\r
//
\r
// Save the token into the Dns6TxTokens map.
\r
//
\r