]> git.proxmox.com Git - mirror_edk2.git/blobdiff - NetworkPkg/Application/IpsecConfig/Helper.c
Update code to avoid potential access violation.
[mirror_edk2.git] / NetworkPkg / Application / IpsecConfig / Helper.c
index 5013ad9b761ce993ee9bdbb52a9c2c75f9f86095..ae867ceee78304d53d67c4a4bc9be78d22e8711c 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   The assistant function implementation for IpSecConfig application.\r
 \r
-  Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.<BR>\r
 \r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
@@ -93,6 +93,7 @@ GetNumber (
       //\r
       // Convert falied, so use String->Integer map.\r
       //\r
+      ASSERT (Map != NULL);\r
       Value64 = MapStringToInteger (ValueStr, Map);\r
       if (Value64 == (UINT32) -1) {\r
         //\r