mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-01 18:58:29 +00:00
wininet: Fix a use-after-free (Coverity).
pEntry could be freed after cache_container_unlock_index(pContainer, pHeader).
This commit is contained in:
parent
1a6deb1cc3
commit
d36f50c438
|
@ -2550,8 +2550,8 @@ BOOL WINAPI UnlockUrlCacheEntryFileA(LPCSTR lpszUrlName, DWORD dwReserved)
|
|||
pEntry = (entry_header*)((LPBYTE)pHeader + pHashEntry->offset);
|
||||
if (pEntry->signature != URL_SIGNATURE)
|
||||
{
|
||||
cache_container_unlock_index(pContainer, pHeader);
|
||||
FIXME("Trying to retrieve entry of unknown format %s\n", debugstr_an((LPSTR)&pEntry->signature, sizeof(DWORD)));
|
||||
cache_container_unlock_index(pContainer, pHeader);
|
||||
SetLastError(ERROR_FILE_NOT_FOUND);
|
||||
return FALSE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue