Fix SSL_CTX_get{first,next}_certificate.

Fix typo that stopped SSL_CTX_get_{first,next}_certificate from working.
(cherry picked from commit 9330a85e04)
This commit is contained in:
Kaspar Brand 2014-04-21 16:52:28 +01:00 committed by Dr. Stephen Henson
parent 6e85eba11b
commit 5aeb43393b

View File

@ -664,7 +664,7 @@ int ssl_cert_set_current(CERT *c, long op)
return 0;
for (i = idx; i < SSL_PKEY_NUM; i++)
{
CERT_PKEY *cpk = c->key + i;
CERT_PKEY *cpk = c->pkeys + i;
if (cpk->x509 && cpk->privatekey)
{
c->key = cpk;