Skip to content

Commit 89931bd

Browse files
Always reinitialize the SSL cipher suites in InitSSL_Side as the side and enabled algos have likely changed.
1 parent bfc4f6b commit 89931bd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/internal.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2253,6 +2253,9 @@ int InitSSL_Side(WOLFSSL* ssl, word16 side)
22532253
}
22542254
#endif /* WOLFSSL_DTLS && !NO_WOLFSSL_SERVER */
22552255

2256+
/* Forcefully reinitialize suites here as the side may have changed. */
2257+
FreeSuites(ssl);
2258+
AllocateSuites(ssl);
22562259
return InitSSL_Suites(ssl);
22572260
}
22582261
#endif /* OPENSSL_EXTRA || WOLFSSL_EITHER_SIDE ||

0 commit comments

Comments
 (0)