From 12b96a93f3f4f6827242f83f108a8d9c209dc6d0 Mon Sep 17 00:00:00 2001 From: Jiaxin Wu Date: Mon, 26 Dec 2016 09:53:20 +0800 Subject: NetworkPkg: Fix potentially uninitialized local variable Cc: Ye Ting Cc: Fu Siyuan Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Wu Jiaxin Reviewed-by: Ye Ting Reviewed-by: Fu Siyuan --- NetworkPkg/HttpDxe/HttpProto.c | 2 ++ NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigImpl.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'NetworkPkg') diff --git a/NetworkPkg/HttpDxe/HttpProto.c b/NetworkPkg/HttpDxe/HttpProto.c index 199d575cf9..2e784def4c 100644 --- a/NetworkPkg/HttpDxe/HttpProto.c +++ b/NetworkPkg/HttpDxe/HttpProto.c @@ -1475,6 +1475,8 @@ HttpTransmitTcp ( Status = EFI_SUCCESS; Buffer = NULL; + TempFragment.Len = 0; + TempFragment.Bulk = NULL; // // Need to encrypt data. 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; } -- cgit v1.2.3