NetworkPkg: Check pointer for NULL before use.

Cc: Ye Ting <ting.ye@intel.com>
Cc: Wu Jiaxin <jiaxin.wu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
This commit is contained in:
Fu Siyuan 2016-04-01 13:14:49 +08:00
parent 6ba44b86f0
commit d9ba76b489
1 changed files with 4 additions and 0 deletions

View File

@ -554,6 +554,10 @@ HttpBootFormCallback (
// Get user input URI string
//
Uri = HiiGetString (CallbackInfo->RegisteredHandle, Value->string, NULL);
ASSERT (Uri != NULL);
if (Uri == NULL) {
return EFI_UNSUPPORTED;
}
//
// Convert the scheme to all lower case.