diff options
author | Fu Siyuan <siyuan.fu@intel.com> | 2016-04-01 13:14:49 +0800 |
---|---|---|
committer | Fu Siyuan <siyuan.fu@intel.com> | 2016-04-01 13:14:49 +0800 |
commit | d9ba76b489ea26de8551d32651c726ad992377b5 (patch) | |
tree | 42106a28ca5944b6828565281b2a96046fa6ab1c /NetworkPkg/HttpBootDxe | |
parent | 6ba44b86f07c390f058aa6ca4d9691ed9a5041ff (diff) | |
download | edk2-platforms-d9ba76b489ea26de8551d32651c726ad992377b5.tar.xz |
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>
Diffstat (limited to 'NetworkPkg/HttpBootDxe')
-rw-r--r-- | NetworkPkg/HttpBootDxe/HttpBootConfig.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/NetworkPkg/HttpBootDxe/HttpBootConfig.c b/NetworkPkg/HttpBootDxe/HttpBootConfig.c index e7dd5db4db..c47dddcee8 100644 --- a/NetworkPkg/HttpBootDxe/HttpBootConfig.c +++ b/NetworkPkg/HttpBootDxe/HttpBootConfig.c @@ -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.
|