summaryrefslogtreecommitdiffstats
path: root/ssl/ssl_sess.c
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>2011-11-13 20:19:21 +0000
committerBen Laurie <ben@openssl.org>2011-11-13 20:19:21 +0000
commit271daaf768113605c04f466e4ff7b113e02d51a2 (patch)
treea32984416afa8617a0ea5b9f677facec5be90d3a /ssl/ssl_sess.c
parentefbb7ee432c14397c1894214235cb0d038df4d25 (diff)
Fix one of the no-tlsext build errors (there are more).
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 74e8f7b99d..c6438a81e1 100644
--- a/ssl/ssl_sess.c
+++ b/ssl/ssl_sess.c
@@ -610,12 +610,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;