]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Remove wpend_ret that was only assigned and never used.
authorFrederik Wedel-Heinen <frederik.wedel-heinen@dencrypt.dk>
Wed, 3 Jan 2024 13:17:20 +0000 (14:17 +0100)
committerTomas Mraz <tomas@openssl.org>
Thu, 11 Jan 2024 09:04:14 +0000 (10:04 +0100)
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23191)

ssl/record/rec_layer_s3.c
ssl/record/record.h

index 845eff9848e5b84525d32715a3ce56b9467bee01..8a2db5817fd27ee9186a4fff6dd94f8d918c91ed 100644 (file)
@@ -32,7 +32,6 @@ void RECORD_LAYER_clear(RECORD_LAYER *rl)
     rl->handshake_fragment_len = 0;
     rl->wpend_tot = 0;
     rl->wpend_type = 0;
-    rl->wpend_ret = 0;
     rl->wpend_buf = NULL;
 
     if (rl->rrlmethod != NULL)
@@ -310,7 +309,6 @@ int ssl3_write_bytes(SSL *ssl, uint8_t type, const void *buf_, size_t len,
         s->rlayer.wpend_tot = 0;
         s->rlayer.wpend_type = type;
         s->rlayer.wpend_buf = buf;
-        s->rlayer.wpend_ret = len;
     }
 
     if (tot == len) {           /* done? */
index 6fb579fe19f1406dc3c6292b534a46d0d91050e1..9c83d6fa1fc0b6c0f6cdd1c081db8417fff14685 100644 (file)
@@ -108,8 +108,6 @@ typedef struct record_layer_st {
     /* number bytes written */
     size_t wpend_tot;
     uint8_t wpend_type;
-    /* number of bytes submitted */
-    size_t wpend_ret;
     const unsigned char *wpend_buf;
 
     /* Count of the number of consecutive warning alerts received */