From 1e0db7b11987d0ec93be7dfe26102a327860fdbd Mon Sep 17 00:00:00 2001 From: Fu Siyuan Date: Thu, 14 Jun 2018 10:30:09 +0800 Subject: MdeModulePkg/NetworkPkg: Checking for NULL pointer before use. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Sivaraman Nainar Reviewed-by: Fu Siyuan --- NetworkPkg/HttpBootDxe/HttpBootConfig.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'NetworkPkg/HttpBootDxe') diff --git a/NetworkPkg/HttpBootDxe/HttpBootConfig.c b/NetworkPkg/HttpBootDxe/HttpBootConfig.c index f32bf18e9d..81fceb2fd6 100644 --- a/NetworkPkg/HttpBootDxe/HttpBootConfig.c +++ b/NetworkPkg/HttpBootDxe/HttpBootConfig.c @@ -473,6 +473,9 @@ HttpBootFormCallback ( // Get user input URI string // 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. -- cgit v1.2.3