]> git.proxmox.com Git - mirror_edk2.git/blobdiff - NetworkPkg/HttpBootDxe/HttpBootConfig.c
MdeModulePkg/NetworkPkg: Checking for NULL pointer before use.
[mirror_edk2.git] / NetworkPkg / HttpBootDxe / HttpBootConfig.c
index f32bf18e9d64e6999cfd903ac8670515f45df2f3..81fceb2fd6bd8e0f6fc9094935c7033a5ee37f2f 100644 (file)
@@ -473,6 +473,9 @@ HttpBootFormCallback (
     // Get user input URI string\r
     //\r
     Uri = HiiGetString (CallbackInfo->RegisteredHandle, Value->string, NULL);\r
+    if(Uri == NULL) {\r
+       return EFI_INVALID_PARAMETER;\r
+    }        \r
 \r
     //\r
     // The URI should be either an empty string (for corporate environment) ,or http(s) for home environment.\r