Fix SSL_CTX_get{first,next}_certificate.

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

View File

@ -670,7 +670,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;