From: Kaspar Brand Date: Mon, 21 Apr 2014 15:52:28 +0000 (+0100) Subject: Fix SSL_CTX_get{first,next}_certificate. X-Git-Tag: master-post-reformat~863 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9330a85e0499f10752434c451977d65d80d8de19;p=oweals%2Fopenssl.git Fix SSL_CTX_get{first,next}_certificate. Fix typo that stopped SSL_CTX_get_{first,next}_certificate from working. --- diff --git a/ssl/ssl_cert.c b/ssl/ssl_cert.c index 385d25f3f1..4e75a96283 100644 --- a/ssl/ssl_cert.c +++ b/ssl/ssl_cert.c @@ -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;