]> 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:15 +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 4a26c0178f1b828b02e0a25bf2cdc6725bb10744..595d150623189f9e314290def5df1aa90cdda1b9 100644 (file)
@@ -1177,7 +1177,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;
@@ -1192,7 +1192,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;