diff options
author | Matt Caswell <matt@openssl.org> | 2022-10-17 14:37:32 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2022-10-20 14:39:33 +0100 |
commit | 3abc0d3e8504f730117e3b68dfb1aab81c5e51fe (patch) | |
tree | 0f2ee71034095f00bb40d4b6cae1497051ba6a5d /ssl | |
parent | bed07b187506ded20ef39dcbed56dc323ae44ff4 (diff) |
Remove supurious set of the record type
We already set the record type on the SSL3_RECORD structure. We don't
need to do it again (inconsistently).
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19424)
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/record/methods/tls_common.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/ssl/record/methods/tls_common.c b/ssl/record/methods/tls_common.c index 40016c121d..5c27a6af15 100644 --- a/ssl/record/methods/tls_common.c +++ b/ssl/record/methods/tls_common.c @@ -1823,13 +1823,6 @@ int tls_write_records_default(OSSL_RECORD_LAYER *rl, goto err; } - /* - * we should now have thiswr->data pointing to the encrypted data, which - * is thiswr->length long. - * Setting the type is not needed but helps for debugging - */ - SSL3_RECORD_set_type(thiswr, thistempl->type); - /* now let's set up wb */ SSL3_BUFFER_set_left(&rl->wbuf[j], SSL3_RECORD_get_length(thiswr)); } |