Restore traditional SSL_get_session behaviour so that s_client and s_server don't leak tons of memory.
Restore traditional SSL_get_session behaviour so that s_client and s_server
don't leak tons of memory.

openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl