Commit 0fdba71b authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

wininet: Added missing LeaveCriticalSection to set_cookie (coverity).

parent 9a85a847
......@@ -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)) {
WARN("An attempt to override httponly cookie\n");
SetLastError(ERROR_INVALID_OPERATION);
LeaveCriticalSection(&cookie_cs);
return COOKIE_STATE_REJECT;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment