We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5420c1a + 4d43dbf commit c047e55Copy full SHA for c047e55
1 file changed
src/ssl_sess.c
@@ -215,6 +215,17 @@
215
#ifdef HAVE_EX_DATA
216
session->ownExData = save_ownExData;
217
#endif
218
+
219
+#if defined(WOLFSSL_TLS13) && defined(HAVE_SESSION_TICKET) && \
220
+ defined(WOLFSSL_TICKET_NONCE_MALLOC) && \
221
+ (!defined(HAVE_FIPS) || (defined(FIPS_VERSION_GE) && FIPS_VERSION_GE(5,3)))
222
+ if ((session->ticketNonce.data != NULL) &&
223
+ (session->ticketNonce.data != session->ticketNonce.dataStatic))
224
+ {
225
+ XFREE(session->ticketNonce.data, NULL, DYNAMIC_TYPE_SESSION_TICK);
226
+ session->ticketNonce.data = NULL;
227
+ }
228
+#endif
229
}
230
231
WOLFSSL_ABI
0 commit comments