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
8858fc9b
Commit
8858fc9b
authored
Feb 08, 2010
by
Hans Leidekker
Committed by
Alexandre Julliard
Feb 08, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Don't call libcrypto function after closing the library.
Spotted by Paul Vriens.
parent
45fc31e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
netconnection.c
dlls/wininet/netconnection.c
+5
-4
No files found.
dlls/wininet/netconnection.c
View file @
8858fc9b
...
...
@@ -160,6 +160,7 @@ MAKE_FUNCPTR(sk_value);
#undef MAKE_FUNCPTR
static
CRITICAL_SECTION
*
ssl_locks
;
static
unsigned
int
num_ssl_locks
;
static
unsigned
long
ssl_thread_id
(
void
)
{
...
...
@@ -458,14 +459,14 @@ DWORD NETCON_init(WININET_NETCONNECTION *connection, BOOL useSSL)
pSSL_CTX_set_verify
(
ctx
,
SSL_VERIFY_PEER
,
netconn_secure_verify
);
pCRYPTO_set_id_callback
(
ssl_thread_id
);
ssl_locks
=
HeapAlloc
(
GetProcessHeap
(),
0
,
pCRYPTO_num_locks
()
*
sizeof
(
CRITICAL_SECTION
));
num_ssl_locks
=
pCRYPTO_num_locks
();
ssl_locks
=
HeapAlloc
(
GetProcessHeap
(),
0
,
num_ssl_locks
*
sizeof
(
CRITICAL_SECTION
));
if
(
!
ssl_locks
)
{
LeaveCriticalSection
(
&
init_ssl_cs
);
return
ERROR_OUTOFMEMORY
;
}
for
(
i
=
0
;
i
<
pCRYPTO_num_locks
()
;
i
++
)
for
(
i
=
0
;
i
<
num_ssl_locks
;
i
++
)
InitializeCriticalSection
(
&
ssl_locks
[
i
]);
pCRYPTO_set_locking_callback
(
ssl_lock_callback
);
LeaveCriticalSection
(
&
init_ssl_cs
);
...
...
@@ -494,7 +495,7 @@ void NETCON_unload(void)
if
(
ssl_locks
)
{
int
i
;
for
(
i
=
0
;
i
<
pCRYPTO_num_locks
()
;
i
++
)
DeleteCriticalSection
(
&
ssl_locks
[
i
]);
for
(
i
=
0
;
i
<
num_ssl_locks
;
i
++
)
DeleteCriticalSection
(
&
ssl_locks
[
i
]);
HeapFree
(
GetProcessHeap
(),
0
,
ssl_locks
);
}
#endif
...
...
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