Skip to content

Commit

Permalink
s_client: fix not to send a command letter of R
Browse files Browse the repository at this point in the history
Before 1.1.0, this command letter is not sent to a server.

CLA: trivial
(cherry picked from commit bc180cb)

Reviewed-by: Ben Kaduk <[email protected]>
Reviewed-by: Matt Caswell <[email protected]>
(Merged from openssl#8081)
  • Loading branch information
shigeki authored and mattcaswell committed Jan 27, 2019
1 parent d7bcbfd commit 5478e21
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions apps/s_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -3083,9 +3083,7 @@ int s_client_main(int argc, char **argv)
BIO_printf(bio_err, "RENEGOTIATING\n");
SSL_renegotiate(con);
cbuf_len = 0;
}

if (!c_ign_eof && (cbuf[0] == 'K' || cbuf[0] == 'k' )
} else if (!c_ign_eof && (cbuf[0] == 'K' || cbuf[0] == 'k' )
&& cmdletters) {
BIO_printf(bio_err, "KEYUPDATE\n");
SSL_key_update(con,
Expand Down

0 comments on commit 5478e21

Please sign in to comment.