From 9409d8682f7590443f786b1aa4247b82218db257 Mon Sep 17 00:00:00 2001 From: David Garske Date: Wed, 15 Jul 2020 12:58:58 -0700 Subject: [PATCH] Fix for building without `session-ticket`. --- src/sniffer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sniffer.c b/src/sniffer.c index 912e5f7e7..e83aa982b 100644 --- a/src/sniffer.c +++ b/src/sniffer.c @@ -2519,10 +2519,12 @@ static int ProcessSessionTicket(const byte* input, int* sslBytes, } input += OPAQUE8_LEN; *sslBytes -= OPAQUE8_LEN; + #ifdef HAVE_SESSION_TICKET /* store nonce in server for DeriveResumptionPSK */ session->sslServer->session.ticketNonce.len = len; if (len > 0) XMEMCPY(&session->sslServer->session.ticketNonce.data, input, len); + #endif input += len; *sslBytes -= len; }