diff options
author | Jiaxin Wu <jiaxin.wu@intel.com> | 2016-06-15 16:23:51 +0800 |
---|---|---|
committer | Hao Wu <hao.a.wu@intel.com> | 2016-07-07 11:24:15 +0800 |
commit | fe4072c0d41a9883a22fca32ba677d0b4313019c (patch) | |
tree | 7a09848cf0473f1f752428e93ff6b2fe66ea0765 /NetworkPkg/Application/IpsecConfig/Indexer.h | |
parent | 6c327875e81b6007647071209ab05a9af843cdab (diff) | |
download | edk2-platforms-fe4072c0d41a9883a22fca32ba677d0b4313019c.tar.xz |
NetworkPkg: Fix unspecified address use case in IpsecConfig
This patch is used to fix unspecified address use case in
ConstructSpdIndexer() function. Indexer->Name for
ConstructSpdIndexer is unspecified, that will be a problem
for UnicodeStrToAsciiStr.
This patch also refine the code by removing ASSERT and user
error handling.
Cc: Fu Siyuan <siyuan.fu@intel.com>
Cc: Ye Ting <ting.ye@intel.com>
Cc: Zeng Star <star.zeng@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jiaxin Wu <jiaxin.wu@intel.com>
Reviewed-by: Zeng Star <star.zeng@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
(cherry picked from commit ca9b4d22f437ccd2d7ad9ce262760097788bafcc)
Diffstat (limited to 'NetworkPkg/Application/IpsecConfig/Indexer.h')
-rw-r--r-- | NetworkPkg/Application/IpsecConfig/Indexer.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/NetworkPkg/Application/IpsecConfig/Indexer.h b/NetworkPkg/Application/IpsecConfig/Indexer.h index 078f38a312..58c0689021 100644 --- a/NetworkPkg/Application/IpsecConfig/Indexer.h +++ b/NetworkPkg/Application/IpsecConfig/Indexer.h @@ -2,7 +2,7 @@ The internal structure and function declaration to construct ENTRY_INDEXER in
IpSecConfig application.
- Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
@@ -18,8 +18,8 @@ #define _INDEXER_H_
typedef struct {
- UINT8 *Name;
- UINTN Index; // Used only if Name is NULL.
+ UINT8 Name[MAX_PEERID_LEN];
+ UINTN Index; // Used only if Name buffer is filled with zero.
} SPD_ENTRY_INDEXER;
typedef struct {
|