summaryrefslogtreecommitdiffstats
path: root/ssl/ssl_lib.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2021-07-15 14:08:56 +0100
committerBenjamin Kaduk <bkaduk@akamai.com>2021-07-17 08:50:55 -0700
commitca001524971ccd595bc0e9843611e6784adfc981 (patch)
treeeb3758c04a5ead2105f21c4bacf0e4e10dd4fceb /ssl/ssl_lib.c
parent2cff17fdb8bfd46ac8d72208a6538d91217cd629 (diff)
Fix some minor record layer issues
Various comments referred to s->packet and s->packet_length instead of s->rlayer.packet and s->rlayer.packet_length. Also fixed is a spot where RECORD_LAYER_write_pending() should have been used. Based on the review comments in #16077. Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Ben Kaduk <kaduk@mit.edu> (Merged from https://github.com/openssl/openssl/pull/16086)
Diffstat (limited to 'ssl/ssl_lib.c')
-rw-r--r--ssl/ssl_lib.c2
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;
}