aboutsummaryrefslogtreecommitdiff
path: root/ssl/ssl_sess.c
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>2012-06-03 22:00:21 +0000
committerBen Laurie <ben@openssl.org>2012-06-03 22:00:21 +0000
commit71fa451343f97b3624374ed1359adc23fba5696e (patch)
tree87ebfb43ece32507c68e360f36a67b4a921e79c0 /ssl/ssl_sess.c
parenta9e1c50bb09a110d4774e6710f9322344684fa2d (diff)
downloadopenssl-71fa451343f97b3624374ed1359adc23fba5696e.zip
openssl-71fa451343f97b3624374ed1359adc23fba5696e.tar.gz
openssl-71fa451343f97b3624374ed1359adc23fba5696e.tar.bz2
Version skew reduction: trivia (I hope).
Diffstat (limited to 'ssl/ssl_sess.c')
-rw-r--r--ssl/ssl_sess.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ssl/ssl_sess.c b/ssl/ssl_sess.c
index 093ea60..6cd1767 100644
--- a/ssl/ssl_sess.c
+++ b/ssl/ssl_sess.c
@@ -589,12 +589,14 @@ int ssl_get_prev_session(SSL *s, unsigned char *session_id, int len,
if (ret != NULL)
{
SSL_SESSION_free(ret);
+#ifndef OPENSSL_NO_TLSEXT
if (!try_session_cache)
{
/* The session was from a ticket, so we should
* issue a ticket for the new session */
s->tlsext_ticket_expected = 1;
}
+#endif
}
if (fatal)
return -1;