Skip to content

Commit

Permalink
Remove wpend_ret that was only assigned and never used.
Browse files Browse the repository at this point in the history
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from #23191)
  • Loading branch information
fwh-dc authored and t8m committed Jan 11, 2024
1 parent 3980118 commit 0a40b23
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions ssl/record/rec_layer_s3.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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? */
Expand Down
2 changes: 0 additions & 2 deletions ssl/record/record.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 0a40b23

Please sign in to comment.