Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
9905113e
Commit
9905113e
authored
Aug 22, 2012
by
Howard Chu
Committed by
Quanah Gibson-Mount
Aug 22, 2012
Browse files
ITS#7359 cleanup for loop
parent
8e57f6e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/libldap/tls_m.c
View file @
9905113e
...
...
@@ -1010,12 +1010,12 @@ tlsm_find_unlocked_key( tlsm_ctx *ctx, void *pin_arg )
}
PK11SlotListElement
*
le
;
for
(
le
=
slots
->
head
;
le
&&
!
result
;
le
=
le
->
next
)
{
for
(
le
=
slots
->
head
;
le
;
le
=
le
->
next
)
{
PK11SlotInfo
*
slot
=
le
->
slot
;
if
(
!
PK11_IsLoggedIn
(
slot
,
NULL
)
)
continue
;
result
=
PK11_FindKeyByDERCert
(
slot
,
ctx
->
tc_certificate
,
pin_arg
);
if
(
PK11_IsLoggedIn
(
slot
,
NULL
)
)
{
result
=
PK11_FindKeyByDERCert
(
slot
,
ctx
->
tc_certificate
,
pin_arg
)
;
break
;
}
}
PK11_FreeSlotList
(
slots
);
...
...
Write
Preview
Supports
Markdown
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