[openssl] OpenSSL_1_1_1-stable update

Dr. Paul Dale pauli at openssl.org
Mon Apr 8 01:04:23 UTC 2019


The branch OpenSSL_1_1_1-stable has been updated
       via  d7af859880c14fff9d46a028366ab473977d1f36 (commit)
      from  8851d3728725885d06db2ff4ef5e5ea3a080deef (commit)


- Log -----------------------------------------------------------------
commit d7af859880c14fff9d46a028366ab473977d1f36
Author: Dan Campbell <dan at ws0w.com>
Date:   Thu Apr 4 15:15:33 2019 -0600

    s_client starttls: fix handling of multiline reply
    
    Fixes #8645
    
    Reviewed-by: Paul Dale <paul.dale at oracle.com>
    Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre at ncp-e.com>
    Reviewed-by: Matt Caswell <matt at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/8654)
    
    (cherry picked from commit f997e456b9bd43af275aab90c727a52287467e98)

-----------------------------------------------------------------------

Summary of changes:
 apps/s_client.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/s_client.c b/apps/s_client.c
index 4dd6e2f..b85339a 100644
--- a/apps/s_client.c
+++ b/apps/s_client.c
@@ -2253,7 +2253,7 @@ int s_client_main(int argc, char **argv)
             do {
                 mbuf_len = BIO_gets(fbio, mbuf, BUFSIZZ);
             }
-            while (mbuf_len > 3 && mbuf[3] == '-');
+            while (mbuf_len > 3 && (!isdigit(mbuf[0]) || !isdigit(mbuf[1]) || !isdigit(mbuf[2]) || mbuf[3] != ' '));
             (void)BIO_flush(fbio);
             BIO_pop(fbio);
             BIO_free(fbio);


More information about the openssl-commits mailing list