From: yangyangtiantianlonglong Date: Sat, 29 Jan 2022 08:49:00 +0000 (+0800) Subject: Revert dropped usage of var thiswr in do_ssl3_write() X-Git-Tag: openssl-3.2.0-alpha1~2987 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b375a8ac9b672bba8e651c11afd2e0a466563742;p=thirdparty%2Fopenssl.git Revert dropped usage of var thiswr in do_ssl3_write() The var 'thiswr' is an unwanted modification, it was submitted in #5253. Reviewed-by: Matt Caswell Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/17610) --- diff --git a/ssl/record/rec_layer_s3.c b/ssl/record/rec_layer_s3.c index d26437f026c..c8b078021b4 100644 --- a/ssl/record/rec_layer_s3.c +++ b/ssl/record/rec_layer_s3.c @@ -1105,7 +1105,7 @@ int do_ssl3_write(SSL *s, int type, const unsigned char *buf, } /* header is added by the kernel when using offload */ - SSL3_RECORD_add_length(&wr[j], SSL3_RT_HEADER_LENGTH); + SSL3_RECORD_add_length(thiswr, SSL3_RT_HEADER_LENGTH); if (create_empty_fragment) { /*