Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
d5dca63c
Commit
d5dca63c
authored
Oct 17, 2008
by
Hans Leidekker
Committed by
Alexandre Julliard
Oct 17, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Don't destroy authentication data when closing the connection.
Fixes basic authentication in combination with connection close semantics. Spotted by Vincent Povirk.
parent
1873ebdd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
25 deletions
+26
-25
http.c
dlls/wininet/http.c
+26
-25
No files found.
dlls/wininet/http.c
View file @
d5dca63c
...
...
@@ -1380,31 +1380,6 @@ static void HTTPREQ_Destroy(WININETHANDLEHEADER *hdr)
WININET_Release
(
&
lpwhr
->
lpHttpSession
->
hdr
);
HeapFree
(
GetProcessHeap
(),
0
,
lpwhr
->
lpszPath
);
HeapFree
(
GetProcessHeap
(),
0
,
lpwhr
->
lpszVerb
);
HeapFree
(
GetProcessHeap
(),
0
,
lpwhr
->
lpszRawHeaders
);
HeapFree
(
GetProcessHeap
(),
0
,
lpwhr
->
lpszVersion
);
HeapFree
(
GetProcessHeap
(),
0
,
lpwhr
->
lpszStatusText
);
for
(
i
=
0
;
i
<
lpwhr
->
nCustHeaders
;
i
++
)
{
HeapFree
(
GetProcessHeap
(),
0
,
lpwhr
->
pCustHeaders
[
i
].
lpszField
);
HeapFree
(
GetProcessHeap
(),
0
,
lpwhr
->
pCustHeaders
[
i
].
lpszValue
);
}
HeapFree
(
GetProcessHeap
(),
0
,
lpwhr
->
pCustHeaders
);
HeapFree
(
GetProcessHeap
(),
0
,
lpwhr
);
}
static
void
HTTPREQ_CloseConnection
(
WININETHANDLEHEADER
*
hdr
)
{
LPWININETHTTPREQW
lpwhr
=
(
LPWININETHTTPREQW
)
hdr
;
TRACE
(
"%p
\n
"
,
lpwhr
);
if
(
!
NETCON_connected
(
&
lpwhr
->
netConnection
))
return
;
if
(
lpwhr
->
pAuthInfo
)
{
if
(
SecIsValidHandle
(
&
lpwhr
->
pAuthInfo
->
ctx
))
...
...
@@ -1417,6 +1392,7 @@ static void HTTPREQ_CloseConnection(WININETHANDLEHEADER *hdr)
HeapFree
(
GetProcessHeap
(),
0
,
lpwhr
->
pAuthInfo
);
lpwhr
->
pAuthInfo
=
NULL
;
}
if
(
lpwhr
->
pProxyAuthInfo
)
{
if
(
SecIsValidHandle
(
&
lpwhr
->
pProxyAuthInfo
->
ctx
))
...
...
@@ -1430,6 +1406,31 @@ static void HTTPREQ_CloseConnection(WININETHANDLEHEADER *hdr)
lpwhr
->
pProxyAuthInfo
=
NULL
;
}
HeapFree
(
GetProcessHeap
(),
0
,
lpwhr
->
lpszPath
);
HeapFree
(
GetProcessHeap
(),
0
,
lpwhr
->
lpszVerb
);
HeapFree
(
GetProcessHeap
(),
0
,
lpwhr
->
lpszRawHeaders
);
HeapFree
(
GetProcessHeap
(),
0
,
lpwhr
->
lpszVersion
);
HeapFree
(
GetProcessHeap
(),
0
,
lpwhr
->
lpszStatusText
);
for
(
i
=
0
;
i
<
lpwhr
->
nCustHeaders
;
i
++
)
{
HeapFree
(
GetProcessHeap
(),
0
,
lpwhr
->
pCustHeaders
[
i
].
lpszField
);
HeapFree
(
GetProcessHeap
(),
0
,
lpwhr
->
pCustHeaders
[
i
].
lpszValue
);
}
HeapFree
(
GetProcessHeap
(),
0
,
lpwhr
->
pCustHeaders
);
HeapFree
(
GetProcessHeap
(),
0
,
lpwhr
);
}
static
void
HTTPREQ_CloseConnection
(
WININETHANDLEHEADER
*
hdr
)
{
LPWININETHTTPREQW
lpwhr
=
(
LPWININETHTTPREQW
)
hdr
;
TRACE
(
"%p
\n
"
,
lpwhr
);
if
(
!
NETCON_connected
(
&
lpwhr
->
netConnection
))
return
;
INTERNET_SendCallback
(
&
lpwhr
->
hdr
,
lpwhr
->
hdr
.
dwContext
,
INTERNET_STATUS_CLOSING_CONNECTION
,
0
,
0
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment