Fix SSL_CTX_get{first,next}_certificate.
authorKaspar Brand <httpd-dev.2014@velox.ch>
Mon, 21 Apr 2014 15:52:28 +0000 (16:52 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Mon, 21 Apr 2014 15:52:28 +0000 (16:52 +0100)
Fix typo that stopped SSL_CTX_get_{first,next}_certificate from working.

ssl/ssl_cert.c

index 385d25f..4e75a96 100644 (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;