]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
s_server: print program not, not port
authorJoshua Rogers <MegaManSec@users.noreply.github.com>
Fri, 10 Oct 2025 09:38:50 +0000 (17:38 +0800)
committerTomas Mraz <tomas@openssl.org>
Fri, 17 Oct 2025 17:01:10 +0000 (19:01 +0200)
Signed-off-by: Joshua Rogers <MegaManSec@users.noreply.github.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28807)

(cherry picked from commit 0d3efc875483d212b4cc2082247bf6abb2b56aca)

apps/s_server.c

index 8a36122a25bf58fa2d31f48146e21f30f8cab961..ea7d67f277b8f40196fa9e22c506d1b36cf45458 100644 (file)
@@ -1182,7 +1182,7 @@ int s_server_main(int argc, char *argv[])
             if (BIO_parse_hostserv(opt_arg(), NULL, &port, BIO_PARSE_PRIO_SERV) < 1) {
                 BIO_printf(bio_err,
                            "%s: -port argument malformed or ambiguous\n",
-                           port);
+                           prog);
                 goto end;
             }
             break;
@@ -1197,7 +1197,7 @@ int s_server_main(int argc, char *argv[])
             if (BIO_parse_hostserv(opt_arg(), &host, &port, BIO_PARSE_PRIO_SERV) < 1) {
                 BIO_printf(bio_err,
                            "%s: -accept argument malformed or ambiguous\n",
-                           port);
+                           prog);
                 goto end;
             }
             break;