Skip to content

Commit 26ba17b

Browse files
committed
Prevent a conversion warning
1 parent aba9ee4 commit 26ba17b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ssl_sess.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1548,7 +1548,7 @@ int wolfSSL_SetSession(WOLFSSL* ssl, WOLFSSL_SESSION* session)
15481548
#endif
15491549
}
15501550
ssl->options.resuming = 1;
1551-
ssl->options.haveEMS = ssl->session->haveEMS;
1551+
ssl->options.haveEMS = (ssl->session->haveEMS) ? 1 : 0;
15521552

15531553
#if defined(SESSION_CERTS) || (defined(WOLFSSL_TLS13) && \
15541554
defined(HAVE_SESSION_TICKET))

0 commit comments

Comments
 (0)