Remove the obsolete misleading comment and code related to it.
authorLingmo Zhu <zlm2006@gmail.com>
Tue, 25 Jul 2017 10:00:44 +0000 (18:00 +0800)
committerMatt Caswell <matt@openssl.org>
Thu, 3 Aug 2017 09:14:46 +0000 (10:14 +0100)
commite29bb83479cc567b4bb414dc55148ec06a30a115
tree4f7b8ba528e8bd17bf4d602d6dc1e7e53409d760
parentb15d5ab617e3caed0489588a33eb804824b2f7d6
Remove the obsolete misleading comment and code related to it.

The comment "The following should not return 1, otherwise, things
are very strange" is from the very first commit of OpenSSL. The
really meaning of the comment is if the identical session can be
found from internal cache after calling get_session_cb but not
found before calling get_session_cb, it is just strange.

The value 1 was originated from the old doc of SSLeay, reversed
from the actual return value of SSL_CTX_add_session().

Anyway either return value of SSL_CTX_add_session() should not
interrupt the session resumption process. So the checking of
return value of SSL_CTX_add_session() is not necessary.

Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4014)
ssl/ssl_sess.c