Yuxuan Shui : urlmon: Fix NULL dereference in BindProtocol_UnlockRequest.
Module: wine Branch: master Commit: 1e8393f976d11bf831fa35466f805b73b63a06c1 URL: https://gitlab.winehq.org/wine/wine/-/commit/1e8393f976d11bf831fa35466f805b7... Author: Yuxuan Shui <yshui(a)codeweavers.com> Date: Tue Sep 5 17:29:50 2023 +0100 urlmon: Fix NULL dereference in BindProtocol_UnlockRequest. --- dlls/urlmon/bindprot.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dlls/urlmon/bindprot.c b/dlls/urlmon/bindprot.c index b09acdd5c3a..ec52ac5e999 100644 --- a/dlls/urlmon/bindprot.c +++ b/dlls/urlmon/bindprot.c @@ -815,7 +815,9 @@ static HRESULT WINAPI ProtocolHandler_UnlockRequest(IInternetProtocol *iface) TRACE("(%p)\n", This); - return IInternetProtocol_UnlockRequest(This->protocol); + if (This->protocol) + return IInternetProtocol_UnlockRequest(This->protocol); + return S_OK; } static const IInternetProtocolVtbl InternetProtocolHandlerVtbl = {
participants (1)
-
Alexandre Julliard