diff options
Diffstat (limited to 'ssl/ssl_lib.c')
-rw-r--r-- | ssl/ssl_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index 892a417d93..501977f02c 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -2333,7 +2333,7 @@ int SSL_new_session_ticket(SSL *s) || !SSL_IS_TLS13(s)) return 0; s->ext.extra_tickets_expected++; - if (s->rlayer.wbuf[0].left == 0 && !SSL_in_init(s)) + if (!RECORD_LAYER_write_pending(&s->rlayer) && !SSL_in_init(s)) ossl_statem_set_in_init(s, 1); return 1; } |