]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
tls_write_records_default(): Remove unused variable
authorTomas Mraz <tomas@openssl.org>
Tue, 27 Sep 2022 15:42:52 +0000 (17:42 +0200)
committerTomas Mraz <tomas@openssl.org>
Tue, 27 Sep 2022 15:42:52 +0000 (17:42 +0200)
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19284)

ssl/record/methods/tls_common.c

index a55a5a815261ae510ba65049b480dd7085c36ade..7774044c6b7e7eee9bd751f53f9b8315c6ac9346 100644 (file)
@@ -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