From 7152e0f6b88895115ace8a6da9caad457ec515af Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Mon, 27 Jul 2015 21:13:02 +0900 Subject: [PATCH] nghttpx: Fix bug that decrypt only key is not considered --- src/shrpx_ssl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shrpx_ssl.cc b/src/shrpx_ssl.cc index 0681888e..d5ca0081 100644 --- a/src/shrpx_ssl.cc +++ b/src/shrpx_ssl.cc @@ -223,7 +223,7 @@ int ticket_key_cb(SSL *ssl, unsigned char *key_name, unsigned char *iv, size_t i; for (i = 0; i < keys.size(); ++i) { - auto &key = keys[0]; + auto &key = keys[i]; if (memcmp(key_name, key.data.name, sizeof(key.data.name)) == 0) { break; }