From bf7249df9cbd0b5096f8f737b2439b6d17be89c3 Mon Sep 17 00:00:00 2001 From: Laszlo Ersek Date: Sat, 7 Sep 2019 14:11:31 +0200 Subject: NetworkPkg: fix CloseProtocol & UninstallMultipleProtocolInterfaces calls MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Both the "ControllerHandle" parameter of CloseProtocol() and the "Handle" parameter of UninstallMultipleProtocolInterfaces() have type EFI_HANDLE, not (EFI_HANDLE*). This patch fixes actual bugs. The issues have been dormant likely because they are on error paths. (Or, in case of TlsAuthConfigDxe, because the driver is unloaded likely very infrequently.) Cc: Jiaxin Wu Cc: Siyuan Fu Signed-off-by: Laszlo Ersek Reviewed-by: Siyuan Fu Reviewed-by: Philippe Mathieu-Daudé --- NetworkPkg/Mtftp4Dxe/Mtftp4Driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'NetworkPkg/Mtftp4Dxe') diff --git a/NetworkPkg/Mtftp4Dxe/Mtftp4Driver.c b/NetworkPkg/Mtftp4Dxe/Mtftp4Driver.c index ae9e65544a..06c4e202d3 100644 --- a/NetworkPkg/Mtftp4Dxe/Mtftp4Driver.c +++ b/NetworkPkg/Mtftp4Dxe/Mtftp4Driver.c @@ -592,7 +592,7 @@ Mtftp4ServiceBindingCreateChild ( MtftpSb->ConnectUdp->UdpHandle, &gEfiUdp4ProtocolGuid, gMtftp4DriverBinding.DriverBindingHandle, - ChildHandle + *ChildHandle ); goto ON_ERROR; } -- cgit v1.2.3