From 5aeb43393be459b8621fc4710135d5206e0961a7 Mon Sep 17 00:00:00 2001 From: Kaspar Brand Date: Mon, 21 Apr 2014 16:52:28 +0100 Subject: [PATCH] Fix SSL_CTX_get{first,next}_certificate. Fix typo that stopped SSL_CTX_get_{first,next}_certificate from working. (cherry picked from commit 9330a85e0499f10752434c451977d65d80d8de19) --- ssl/ssl_cert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssl/ssl_cert.c b/ssl/ssl_cert.c index 830490e86..aaa6e0a19 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;