Skip to content

Commit 818d1e3

Browse files
Merge pull request #9321 from anhu/no_conv_ems
Prevent a conversion warning
2 parents c1339ab + 26ba17b commit 818d1e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)