From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id D985B818C4 for ; Sun, 25 Dec 2016 18:11:09 -0800 (PST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga101.fm.intel.com with ESMTP; 25 Dec 2016 18:11:09 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,404,1477983600"; d="scan'208";a="916120530" Received: from jiaxinwu-mobl2.ccr.corp.intel.com ([10.239.196.62]) by orsmga003.jf.intel.com with ESMTP; 25 Dec 2016 18:11:08 -0800 From: Jiaxin Wu To: edk2-devel@lists.01.org Cc: Ye Ting , Fu Siyuan , Wu Jiaxin Date: Mon, 26 Dec 2016 10:11:07 +0800 Message-Id: <1482718267-31756-1-git-send-email-jiaxin.wu@intel.com> X-Mailer: git-send-email 1.9.5.msysgit.1 Subject: [Patch] NetworkPkg: Fix potentially uninitialized local variable X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Dec 2016 02:11:10 -0000 Cc: Ye Ting Cc: Fu Siyuan Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Wu Jiaxin --- NetworkPkg/HttpDxe/HttpProto.c | 2 ++ NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigImpl.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NetworkPkg/HttpDxe/HttpProto.c b/NetworkPkg/HttpDxe/HttpProto.c index 199d575..2e784de 100644 --- a/NetworkPkg/HttpDxe/HttpProto.c +++ b/NetworkPkg/HttpDxe/HttpProto.c @@ -1473,10 +1473,12 @@ HttpTransmitTcp ( UINTN BufferSize; NET_FRAGMENT TempFragment; Status = EFI_SUCCESS; Buffer = NULL; + TempFragment.Len = 0; + TempFragment.Bulk = NULL; // // Need to encrypt data. // if (HttpInstance->UseHttps) { diff --git a/NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigImpl.c b/NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigImpl.c index e81e961..5f04503 100644 --- a/NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigImpl.c +++ b/NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigImpl.c @@ -1716,11 +1716,11 @@ TlsAuthConfigAccessCallback ( return EFI_OUT_OF_RESOURCES; } } 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; } // // Refresh selected file. -- 1.9.5.msysgit.1