mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-27 03:20:22 +08:00
ITS#7359 cleanup for loop
This commit is contained in:
parent
6833b8717a
commit
1ebf95c31b
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user