diff options
Diffstat (limited to 'apps/pkcs12.c')
-rw-r--r-- | apps/pkcs12.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/pkcs12.c b/apps/pkcs12.c index f4aef816dd..0c39ed79bd 100644 --- a/apps/pkcs12.c +++ b/apps/pkcs12.c @@ -687,8 +687,10 @@ int pkcs12_main(int argc, char **argv) if ((cb_sk = NCONF_get_section(conf, cb_attr)) != NULL) { for (i = 0; i < sk_CONF_VALUE_num(cb_sk); i++) { val = sk_CONF_VALUE_value(cb_sk, i); - if (strcmp(val->name, "jdkTrustedKeyUsage") == 0) + if (strcmp(val->name, "jdkTrustedKeyUsage") == 0) { obj = OBJ_txt2obj(val->value, 0); + break; + } } } else { ERR_clear_error(); |