summaryrefslogtreecommitdiffstats
path: root/ssl/record
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2020-10-09 15:12:53 -0700
committerBenjamin Kaduk <kaduk@mit.edu>2020-11-28 18:36:16 -0800
commit6568d7a93127d097122e2ce10491d06a363929e9 (patch)
treeaaabe115ec0db4d0fa3cdf50518a71529e17c370 /ssl/record
parent410f5bb18908d89e5e35339049adf4070925faec (diff)
Collapse two identical if statements into a single body.
These two bodies should be grouped together anyway as the reason for the call to BIO_flush() is to permit using BIO_set_ktls_ctrl_msg(). Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Ben Kaduk <kaduk@mit.edu> (Merged from https://github.com/openssl/openssl/pull/13090)
Diffstat (limited to 'ssl/record')
-rw-r--r--ssl/record/rec_layer_s3.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/ssl/record/rec_layer_s3.c b/ssl/record/rec_layer_s3.c
index 9fadeba62d..17ee8bd483 100644
--- a/ssl/record/rec_layer_s3.c
+++ b/ssl/record/rec_layer_s3.c
@@ -1189,10 +1189,6 @@ int ssl3_write_pending(SSL *s, int type, const unsigned char *buf, size_t len,
i = BIO_flush(s->wbio);
if (i <= 0)
return i;
- }
-
- if (BIO_get_ktls_send(s->wbio)
- && type != SSL3_RT_APPLICATION_DATA) {
BIO_set_ktls_ctrl_msg(s->wbio, type);
}
/* TODO(size_t): Convert this call */