提交 3dcc1ffc 编写于 作者: B Ben Laurie

Don't shadow.

上级 2613c1fa
...@@ -325,18 +325,18 @@ if (export_cert) { ...@@ -325,18 +325,18 @@ if (export_cert) {
/* If chaining get chain from user cert */ /* If chaining get chain from user cert */
if (chain) { if (chain) {
int vret; int vret;
STACK *chain; STACK *chain2;
vret = get_cert_chain (ucert, &chain); vret = get_cert_chain (ucert, &chain2);
if (vret) { if (vret) {
BIO_printf (bio_err, "Error %s getting chain.\n", BIO_printf (bio_err, "Error %s getting chain.\n",
X509_verify_cert_error_string(vret)); X509_verify_cert_error_string(vret));
goto end; goto end;
} }
/* Exclude verified certificate */ /* Exclude verified certificate */
for (i = 1; i < sk_num (chain) ; i++) for (i = 1; i < sk_num (chain2) ; i++)
sk_push(certs, sk_value (chain, i)); sk_push(certs, sk_value (chain2, i));
sk_free(chain); sk_free(chain2);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册