Remove wpend_ret that was only assigned and never used.

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)
This commit is contained in:
Frederik Wedel-Heinen 2024-01-03 14:17:20 +01:00 committed by Tomas Mraz
parent 3980118484
commit 0a40b23cb8
2 changed files with 0 additions and 4 deletions

View 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? */

View 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 */