mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-26 23:24:03 +02:00
NetworkPkg/HttpDxe: TlsChildHandle is not cleared when reset
BZ #2909, https://bugzilla.tianocore.org/show_bug.cgi?id=2909 When Http->Configure() is invoked with HttpConfigData set to NULL to reset the EFI HTTP instance, TLS child instance is destroyed but HttpInstance->TlsChildHandle is not set to NULL. After reconfiguring HTTP through Http->Configure() and sending the HTTP request to HTTPS URL, TLS child instance is not recreated because HttpInstance->TlsChildHandle is not NULL. Cc: Maciej Rabeda <maciej.rabeda@linux.intel.com> Cc: Wu Jiaxin <jiaxin.wu@intel.com> Cc: Fu Siyuan <siyuan.fu@intel.com> Cc: Nickle Wang <nickle.wang@hpe.com> Signed-off-by: Abner Chang <abner.chang@hpe.com> Reviewed-by: Wu Jiaxin <jiaxin.wu@intel.com> Reviewed-by: Maciej Rabeda <maciej.rabeda@linux.intel.com>
This commit is contained in:
parent
091ab12b34
commit
5df413119e
@ -873,6 +873,7 @@ HttpCleanProtocol (
|
|||||||
// Destroy the TLS instance.
|
// Destroy the TLS instance.
|
||||||
//
|
//
|
||||||
HttpInstance->TlsSb->DestroyChild (HttpInstance->TlsSb, HttpInstance->TlsChildHandle);
|
HttpInstance->TlsSb->DestroyChild (HttpInstance->TlsSb, HttpInstance->TlsChildHandle);
|
||||||
|
HttpInstance->TlsChildHandle = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (HttpInstance->Tcp4ChildHandle != NULL) {
|
if (HttpInstance->Tcp4ChildHandle != NULL) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user