mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 05:00:30 +00:00
wininet: Don't leak the proxy username and password in WININET_SetProxyAuthorization.
This commit is contained in:
parent
4b1e0de90f
commit
1126b89360
@ -231,12 +231,14 @@ static BOOL WININET_SetProxyAuthorization( HINTERNET hRequest,
|
||||
if( !p )
|
||||
goto done;
|
||||
|
||||
HeapFree(GetProcessHeap(), 0, hIC->lpszProxyUsername);
|
||||
hIC->lpszProxyUsername = p;
|
||||
|
||||
p = heap_strdupW(password);
|
||||
if( !p )
|
||||
goto done;
|
||||
|
||||
HeapFree(GetProcessHeap(), 0, hIC->lpszProxyPassword);
|
||||
hIC->lpszProxyPassword = p;
|
||||
|
||||
ret = TRUE;
|
||||
|
Loading…
Reference in New Issue
Block a user