mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
Merge af7f3fefcc into fb2ac429de
This commit is contained in:
commit
746beb142d
1 changed files with 20 additions and 1 deletions
|
|
@ -1179,7 +1179,6 @@ ParseDnsResponse (
|
|||
Dns6RR = NULL;
|
||||
|
||||
*Completed = TRUE;
|
||||
Status = EFI_SUCCESS;
|
||||
RemainingLength = Length;
|
||||
|
||||
//
|
||||
|
|
@ -1257,6 +1256,12 @@ ParseDnsResponse (
|
|||
}
|
||||
|
||||
ASSERT (Item != NULL);
|
||||
if (Item == NULL) {
|
||||
*Completed = FALSE;
|
||||
Status = EFI_ABORTED;
|
||||
goto ON_EXIT;
|
||||
}
|
||||
|
||||
Dns4TokenEntry = (DNS4_TOKEN_ENTRY *)(Item->Key);
|
||||
} else {
|
||||
if (!IsValidDnsResponse (
|
||||
|
|
@ -1273,6 +1278,12 @@ ParseDnsResponse (
|
|||
}
|
||||
|
||||
ASSERT (Item != NULL);
|
||||
if (Item == NULL) {
|
||||
*Completed = FALSE;
|
||||
Status = EFI_ABORTED;
|
||||
goto ON_EXIT;
|
||||
}
|
||||
|
||||
Dns6TokenEntry = (DNS6_TOKEN_ENTRY *)(Item->Key);
|
||||
}
|
||||
|
||||
|
|
@ -1499,6 +1510,10 @@ ParseDnsResponse (
|
|||
// This is address entry, get Data.
|
||||
//
|
||||
ASSERT (Dns4TokenEntry != NULL);
|
||||
if (Dns4TokenEntry == NULL) {
|
||||
Status = EFI_ABORTED;
|
||||
goto ON_EXIT;
|
||||
}
|
||||
|
||||
if (AnswerSection->DataLength != 4) {
|
||||
Status = EFI_ABORTED;
|
||||
|
|
@ -1561,6 +1576,10 @@ ParseDnsResponse (
|
|||
// This is address entry, get Data.
|
||||
//
|
||||
ASSERT (Dns6TokenEntry != NULL);
|
||||
if (Dns6TokenEntry == NULL) {
|
||||
Status = EFI_ABORTED;
|
||||
goto ON_EXIT;
|
||||
}
|
||||
|
||||
if (AnswerSection->DataLength != 16) {
|
||||
Status = EFI_ABORTED;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue