aboutsummaryrefslogtreecommitdiffstats
path: root/ssl
diff options
context:
space:
mode:
authorTomas Mraz <tomas@openssl.org>2022-09-27 17:42:52 +0200
committerTomas Mraz <tomas@openssl.org>2022-09-27 17:42:52 +0200
commit3c9ffd0273b7e1e1e425be03c5e8a58ef07c4625 (patch)
treee5d9ff1a83788dc4ecdfb17093de4d717f59665c /ssl
parent31fbf119f396cf67e808cb95e28302dbe45174cb (diff)
downloadopenssl-3c9ffd0273b7e1e1e425be03c5e8a58ef07c4625.tar.gz
tls_write_records_default(): Remove unused variable
Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/19284)
Diffstat (limited to 'ssl')
-rw-r--r--ssl/record/methods/tls_common.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ssl/record/methods/tls_common.c b/ssl/record/methods/tls_common.c
index a55a5a8152..7774044c6b 100644
--- a/ssl/record/methods/tls_common.c
+++ b/ssl/record/methods/tls_common.c
@@ -1495,7 +1495,7 @@ int tls_write_records_default(OSSL_RECORD_LAYER *rl,
size_t align = 0;
SSL3_BUFFER *wb;
SSL_SESSION *sess;
- size_t totlen = 0, len, wpinited = 0;
+ size_t len, wpinited = 0;
size_t j, prefix = 0;
int using_ktls;
/* TODO(RECLAYER): REMOVE ME */
@@ -1625,7 +1625,6 @@ int tls_write_records_default(OSSL_RECORD_LAYER *rl,
}
}
- totlen = 0;
/* Clear our SSL3_RECORD structures */
memset(wr, 0, sizeof(wr));
for (j = 0; j < numtempl + prefix; j++) {
@@ -1679,7 +1678,6 @@ int tls_write_records_default(OSSL_RECORD_LAYER *rl,
SSL3_RECORD_set_length(thiswr, thistempl->buflen);
SSL3_RECORD_set_input(thiswr, (unsigned char *)thistempl->buf);
- totlen += thistempl->buflen;
/*
* we now 'read' from thiswr->input, thiswr->length bytes into