We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0df5f35 commit d667e86Copy full SHA for d667e86
1 file changed
src/internal.c
@@ -39756,7 +39756,10 @@ static int AddPSKtoPreMasterSecret(WOLFSSL* ssl)
39756
WOLFSSL_START(WC_FUNC_TICKET_SEND);
39757
WOLFSSL_ENTER("SendTicket");
39758
39759
- if (ssl->options.createTicket) {
+ if (ssl->options.createTicket &&
39760
+ /* This will be set when SendHandshakeMsg returns WANT_WRITE. Create
39761
+ * a new ticket only once. */
39762
+ !ssl->options.buildingMsg) {
39763
ret = SetupTicket(ssl);
39764
if (ret != 0)
39765
return ret;
0 commit comments