Commit 9905113e authored by Howard Chu's avatar Howard Chu Committed by Quanah Gibson-Mount
Browse files

ITS#7359 cleanup for loop

parent 8e57f6e8
......@@ -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 );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment