mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +02:00
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:
parent
6ba44b86f0
commit
d9ba76b489
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user