Commit 0281b7d3 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

wininet: Fixed realm allocation in cache_basic_authorization.

parent 256bd453
......@@ -873,7 +873,7 @@ static void cache_basic_authorization(LPWSTR host, LPWSTR realm, LPSTR auth_data
{
ad = heap_alloc(sizeof(basicAuthorizationData));
ad->host = heap_strdupW(host);
ad->host = heap_strdupW(realm);
ad->realm = heap_strdupW(realm);
ad->authorization = heap_alloc(auth_data_len);
memcpy(ad->authorization, auth_data, auth_data_len);
ad->authorizationLen = auth_data_len;
......
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