]> git.proxmox.com Git - mirror_edk2.git/blobdiff - NetworkPkg/HttpBootDxe/HttpBootConfig.c
NetworkPkg: Check pointer for NULL before use.
[mirror_edk2.git] / NetworkPkg / HttpBootDxe / HttpBootConfig.c
index e7dd5db4dbe2a7ecefbe9d946b11c969c6f44f76..c47dddcee826d31dd79fa0f2453e609d5f35ebe9 100644 (file)
@@ -554,6 +554,10 @@ HttpBootFormCallback (
     // Get user input URI string\r
     //\r
     Uri = HiiGetString (CallbackInfo->RegisteredHandle, Value->string, NULL);\r
+    ASSERT (Uri != NULL);\r
+    if (Uri == NULL) {\r
+      return EFI_UNSUPPORTED;\r
+    }\r
 \r
     //\r
     // Convert the scheme to all lower case.\r