summaryrefslogtreecommitdiffstats
path: root/NetworkPkg/TlsAuthConfigDxe
diff options
context:
space:
mode:
authorJiaxin Wu <jiaxin.wu@intel.com>2016-12-26 09:53:20 +0800
committerJiaxin Wu <jiaxin.wu@intel.com>2016-12-26 16:56:23 +0800
commit12b96a93f3f4f6827242f83f108a8d9c209dc6d0 (patch)
tree7ab6c2283d981323b8140c0fded2e0849424842c /NetworkPkg/TlsAuthConfigDxe
parent5ea07b9d15fac130a53737e7ce2a29ae7a691520 (diff)
downloadedk2-12b96a93f3f4f6827242f83f108a8d9c209dc6d0.tar.gz
edk2-12b96a93f3f4f6827242f83f108a8d9c209dc6d0.tar.bz2
edk2-12b96a93f3f4f6827242f83f108a8d9c209dc6d0.zip
NetworkPkg: Fix potentially uninitialized local variable
Cc: Ye Ting <ting.ye@intel.com> Cc: Fu Siyuan <siyuan.fu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Wu Jiaxin <jiaxin.wu@intel.com> Reviewed-by: Ye Ting <ting.ye@intel.com> Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
Diffstat (limited to 'NetworkPkg/TlsAuthConfigDxe')
-rw-r--r--NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigImpl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigImpl.c b/NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigImpl.c
index e81e961553..5f04503887 100644
--- a/NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigImpl.c
+++ b/NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigImpl.c
@@ -1718,7 +1718,7 @@ TlsAuthConfigAccessCallback (
}
if (QuestionId == KEY_TLS_AUTH_CONFIG_CLIENT_CERT) {
LabelId = TLS_AUTH_CONFIG_FORMID3_FORM;
- } else if (QuestionId == KEY_TLS_AUTH_CONFIG_SERVER_CA) {
+ } else {
LabelId = TLS_AUTH_CONFIG_FORMID4_FORM;
}