Commit 1a9f5cf0 authored by Xiaoyin Liu's avatar Xiaoyin Liu Committed by Rich Salz
Browse files

Add missing HTML tag in www_body in s_server.c



In the generated HTML document, the `<pre>` tag is not closed. This patch also has a trivial code-style improvement, unrelated to the bug fix.

Reviewed-by: default avatarRichard Levitte <levitte@openssl.org>
Reviewed-by: default avatarKurt Roeckx <kurt@roeckx.be>
Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4088)
parent 0c714ba2
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -3113,9 +3113,10 @@ static int www_body(int s, int stype, int prot, unsigned char *context)
                PEM_write_bio_X509(io, peer);
                X509_free(peer);
                peer = NULL;
            } else
            } else {
                BIO_puts(io, "no client certificate available\n");
            BIO_puts(io, "</BODY></HTML>\r\n\r\n");
            }
            BIO_puts(io, "</pre></BODY></HTML>\r\n\r\n");
            break;
        } else if ((www == 2 || www == 3)
                   && (strncmp("GET /", buf, 5) == 0)) {