Add missing HTML tag in www_body in s_server.c
authorXiaoyin Liu <xiaoyinl@users.noreply.github.com>
Sat, 5 Aug 2017 06:31:04 +0000 (02:31 -0400)
committerRich Salz <rsalz@openssl.org>
Wed, 9 Aug 2017 16:02:57 +0000 (12:02 -0400)
In the generated HTML document, the `<pre>` tag is not closed.

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4088)
(cherry picked from commit 1a9f5cf0d58629ab8972f50e937d8ab78bf27b6f)

apps/s_server.c

index d75871386928f593fde94d74c91bd22bca6ebdc0..98ffc09314a3027a574b5b80c314dc713eabbf15 100644 (file)
@@ -3017,7 +3017,7 @@ static int www_body(char *hostname, int s, int stype, unsigned char *context)
                 PEM_write_bio_X509(io, peer);
             } 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)) {