Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
59ce0f26
Commit
59ce0f26
authored
Aug 02, 2018
by
Mark Andrews
Browse files
unlink before unlock
(cherry picked from commit
4742f4ec
)
parent
08efcd06
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/isc/pk11.c
View file @
59ce0f26
...
...
@@ -515,6 +515,7 @@ free_session_list(pk11_sessionlist_t *slist) {
LOCK
(
&
sessionlock
);
while
(
!
ISC_LIST_EMPTY
(
*
slist
))
{
sp
=
ISC_LIST_HEAD
(
*
slist
);
ISC_LIST_UNLINK
(
*
slist
,
sp
,
link
);
UNLOCK
(
&
sessionlock
);
if
(
sp
->
session
!=
CK_INVALID_HANDLE
)
{
rv
=
pkcs_C_CloseSession
(
sp
->
session
);
...
...
@@ -522,7 +523,6 @@ free_session_list(pk11_sessionlist_t *slist) {
ret
=
DST_R_CRYPTOFAILURE
;
}
LOCK
(
&
sessionlock
);
ISC_LIST_UNLINK
(
*
slist
,
sp
,
link
);
pk11_mem_put
(
sp
,
sizeof
(
*
sp
));
}
UNLOCK
(
&
sessionlock
);
...
...
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