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; }