From: Kaspar Brand Date: Mon, 21 Apr 2014 15:52:28 +0000 (+0100) Subject: Fix SSL_CTX_get{first,next}_certificate. X-Git-Tag: OpenSSL_1_0_2-beta2~249 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5aeb43393be459b8621fc4710135d5206e0961a7;p=oweals%2Fopenssl.git Fix SSL_CTX_get{first,next}_certificate. Fix typo that stopped SSL_CTX_get_{first,next}_certificate from working. (cherry picked from commit 9330a85e0499f10752434c451977d65d80d8de19) --- diff --git a/ssl/ssl_cert.c b/ssl/ssl_cert.c index 830490e860..aaa6e0a198 100644 --- a/ssl/ssl_cert.c +++ b/ssl/ssl_cert.c @@ -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;