]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
s_client: fix not to send a command letter of R 8081/head
authorShigeki Ohtsu <ohtsu@ohtsu.org>
Thu, 24 Jan 2019 13:45:50 +0000 (22:45 +0900)
committerShigeki Ohtsu <ohtsu@ohtsu.org>
Thu, 24 Jan 2019 13:59:29 +0000 (22:59 +0900)
Before 1.1.0, this command letter is not sent to a server.

CLA: trivial

apps/s_client.c

index d788b89dee13f0bf836b7c70de519f70b4bdacfa..15dbc73c3bfa4041da2a72b2933d83c31dd88235 100644 (file)
@@ -3081,9 +3081,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,