]> 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:00:52 +0000 (19:00 +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)

apps/s_server.c

index 94f225f4426c36a76c1f0e917eabdd74c43c17f4..1977e4f5c03b22a51172472078b9ba160e831ae8 100644 (file)
@@ -1399,7 +1399,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;
@@ -1414,7 +1414,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;