nghttpx: Fix bug that decrypt only key is not considered

This commit is contained in:
Tatsuhiro Tsujikawa 2015-07-27 21:13:02 +09:00
parent 9eb234d321
commit 7152e0f6b8
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}