nghttpx: Don't look up session ID if length is 0

This commit is contained in:
Tatsuhiro Tsujikawa 2017-03-22 21:33:31 +09:00
parent 4f9f181f07
commit 465c7208cc
1 changed files with 4 additions and 0 deletions

View File

@ -323,6 +323,10 @@ SSL_SESSION *tls_session_get_cb(SSL *ssl,
auto dispatcher = worker->get_session_cache_memcached_dispatcher();
auto &balloc = handler->get_block_allocator();
if (idlen == 0) {
return nullptr;
}
if (conn->tls.cached_session) {
if (LOG_ENABLED(INFO)) {
LOG(INFO) << "Memcached: found cached session, id="