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
98dbdadc
Commit
98dbdadc
authored
Sep 28, 2010
by
Juan Lang
Committed by
Alexandre Julliard
Sep 30, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Don't call SSL_connect until initialization is complete.
parent
181a367a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
netconnection.c
dlls/wininet/netconnection.c
+8
-8
No files found.
dlls/wininet/netconnection.c
View file @
98dbdadc
...
...
@@ -671,14 +671,6 @@ DWORD NETCON_secure_connect(WININET_NETCONNECTION *connection, LPWSTR hostname)
goto
fail
;
}
if
(
pSSL_connect
(
connection
->
ssl_s
)
<=
0
)
{
res
=
(
DWORD_PTR
)
pSSL_get_ex_data
(
connection
->
ssl_s
,
error_idx
);
if
(
!
res
)
res
=
ERROR_INTERNET_SECURITY_CHANNEL_ERROR
;
ERR
(
"SSL_connect failed: %d
\n
"
,
res
);
goto
fail
;
}
if
(
!
pSSL_set_ex_data
(
connection
->
ssl_s
,
hostname_idx
,
hostname
))
{
ERR
(
"SSL_set_ex_data failed: %s
\n
"
,
...
...
@@ -693,6 +685,14 @@ DWORD NETCON_secure_connect(WININET_NETCONNECTION *connection, LPWSTR hostname)
res
=
ERROR_INTERNET_SECURITY_CHANNEL_ERROR
;
goto
fail
;
}
if
(
pSSL_connect
(
connection
->
ssl_s
)
<=
0
)
{
res
=
(
DWORD_PTR
)
pSSL_get_ex_data
(
connection
->
ssl_s
,
error_idx
);
if
(
!
res
)
res
=
ERROR_INTERNET_SECURITY_CHANNEL_ERROR
;
ERR
(
"SSL_connect failed: %d
\n
"
,
res
);
goto
fail
;
}
verify_res
=
pSSL_get_verify_result
(
connection
->
ssl_s
);
if
(
verify_res
!=
X509_V_OK
)
{
...
...
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