nghttpx: Fix bug that decrypt only key is not considered
This commit is contained in:
parent
9eb234d321
commit
7152e0f6b8
|
@ -223,7 +223,7 @@ int ticket_key_cb(SSL *ssl, unsigned char *key_name, unsigned char *iv,
|
||||||
|
|
||||||
size_t i;
|
size_t i;
|
||||||
for (i = 0; i < keys.size(); ++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) {
|
if (memcmp(key_name, key.data.name, sizeof(key.data.name)) == 0) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue