Do not lookup zero-length session ID
authorKazuki Yamaguchi <k@rhe.jp>
Fri, 31 Mar 2017 13:52:56 +0000 (22:52 +0900)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Fri, 25 Aug 2017 12:36:07 +0000 (14:36 +0200)
commit0afca8113e81e8cd6f0f891f7f6ebfc5f14489db
tree72028e6edfdd461cbbac02c9e0e70bb558b4818e
parent0139ce7c92f5570ce1513cfe776df94460842ce0
Do not lookup zero-length session ID

A condition was removed by commit 1053a6e2281d; presumably it was an
unintended change. Restore the previous behavior so the get_session_cb
won't be called with zero-length session ID.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from https://github.com/openssl/openssl/pull/4236)
ssl/ssl_sess.c
test/sslapitest.c