From 271daaf768113605c04f466e4ff7b113e02d51a2 Mon Sep 17 00:00:00 2001 From: Ben Laurie Date: Sun, 13 Nov 2011 20:19:21 +0000 Subject: [PATCH] Fix one of the no-tlsext build errors (there are more). --- ssl/ssl_sess.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.25.1