wininet: Added missing LeaveCriticalSection to set_cookie (coverity).
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
9a85a84765
commit
0fdba71bed
|
@ -1003,6 +1003,7 @@ DWORD set_cookie(substr_t domain, substr_t path, substr_t name, substr_t data, D
|
||||||
if ((thisCookie->flags & INTERNET_COOKIE_HTTPONLY) && !(flags & INTERNET_COOKIE_HTTPONLY)) {
|
if ((thisCookie->flags & INTERNET_COOKIE_HTTPONLY) && !(flags & INTERNET_COOKIE_HTTPONLY)) {
|
||||||
WARN("An attempt to override httponly cookie\n");
|
WARN("An attempt to override httponly cookie\n");
|
||||||
SetLastError(ERROR_INVALID_OPERATION);
|
SetLastError(ERROR_INVALID_OPERATION);
|
||||||
|
LeaveCriticalSection(&cookie_cs);
|
||||||
return COOKIE_STATE_REJECT;
|
return COOKIE_STATE_REJECT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue