Prevent a conversion warning

This commit is contained in:
Anthony Hu
2025-10-20 11:17:39 -04:00
parent aba9ee4015
commit 26ba17b48e

View File

@@ -1548,7 +1548,7 @@ int wolfSSL_SetSession(WOLFSSL* ssl, WOLFSSL_SESSION* session)
#endif
}
ssl->options.resuming = 1;
ssl->options.haveEMS = ssl->session->haveEMS;
ssl->options.haveEMS = (ssl->session->haveEMS) ? 1 : 0;
#if defined(SESSION_CERTS) || (defined(WOLFSSL_TLS13) && \
defined(HAVE_SESSION_TICKET))