mirror of https://github.com/acidanthera/audk.git
MdeModulePkg/NetworkPkg: Checking for NULL pointer before use.
Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Sivaraman Nainar <sivaramann@amiindia.co.in> Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
This commit is contained in:
parent
855abe0204
commit
1e0db7b119
|
@ -1048,8 +1048,11 @@ Ip4Groups (
|
||||||
// is decreamented each time an address is removed..
|
// is decreamented each time an address is removed..
|
||||||
//
|
//
|
||||||
for (Index = IpInstance->GroupCount; Index > 0 ; Index--) {
|
for (Index = IpInstance->GroupCount; Index > 0 ; Index--) {
|
||||||
Group = IpInstance->Groups[Index - 1];
|
Group = 0;
|
||||||
|
if(IpInstance->Groups != NULL) {
|
||||||
|
Group = IpInstance->Groups[Index - 1];
|
||||||
|
}
|
||||||
|
|
||||||
if ((GroupAddress == NULL) || EFI_IP4_EQUAL (&Group, GroupAddress)) {
|
if ((GroupAddress == NULL) || EFI_IP4_EQUAL (&Group, GroupAddress)) {
|
||||||
if (EFI_ERROR (Ip4LeaveGroup (IpInstance, NTOHL (Group)))) {
|
if (EFI_ERROR (Ip4LeaveGroup (IpInstance, NTOHL (Group)))) {
|
||||||
return EFI_DEVICE_ERROR;
|
return EFI_DEVICE_ERROR;
|
||||||
|
|
|
@ -473,6 +473,9 @@ HttpBootFormCallback (
|
||||||
// Get user input URI string
|
// Get user input URI string
|
||||||
//
|
//
|
||||||
Uri = HiiGetString (CallbackInfo->RegisteredHandle, Value->string, NULL);
|
Uri = HiiGetString (CallbackInfo->RegisteredHandle, Value->string, NULL);
|
||||||
|
if(Uri == NULL) {
|
||||||
|
return EFI_INVALID_PARAMETER;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// The URI should be either an empty string (for corporate environment) ,or http(s) for home environment.
|
// The URI should be either an empty string (for corporate environment) ,or http(s) for home environment.
|
||||||
|
|
|
@ -2438,7 +2438,7 @@ Ikev2ChildSaParseSaPayload (
|
||||||
IntegrityAlgorithm = 0;
|
IntegrityAlgorithm = 0;
|
||||||
EncryptAlgorithm = 0;
|
EncryptAlgorithm = 0;
|
||||||
EncryptKeylength = 0;
|
EncryptKeylength = 0;
|
||||||
IsMatch = TRUE;
|
IsMatch = FALSE;
|
||||||
IsSupportEsn = FALSE;
|
IsSupportEsn = FALSE;
|
||||||
PreferIsSupportEsn = FALSE;
|
PreferIsSupportEsn = FALSE;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue