diff options
Diffstat (limited to 'apps/pkcs12.c')
-rw-r--r-- | apps/pkcs12.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/pkcs12.c b/apps/pkcs12.c index 99db7bb22c..96e0379fad 100644 --- a/apps/pkcs12.c +++ b/apps/pkcs12.c @@ -325,18 +325,18 @@ if (export_cert) { /* If chaining get chain from user cert */ if (chain) { int vret; - STACK *chain; + STACK *chain2; - vret = get_cert_chain (ucert, &chain); + vret = get_cert_chain (ucert, &chain2); if (vret) { BIO_printf (bio_err, "Error %s getting chain.\n", X509_verify_cert_error_string(vret)); goto end; } /* Exclude verified certificate */ - for (i = 1; i < sk_num (chain) ; i++) - sk_push(certs, sk_value (chain, i)); - sk_free(chain); + for (i = 1; i < sk_num (chain2) ; i++) + sk_push(certs, sk_value (chain2, i)); + sk_free(chain2); } |