From: Sebastian Andrzej Siewior Date: Thu, 14 Dec 2023 19:53:35 +0000 (+0100) Subject: apps: Don't print hostname on bio_out during connect. X-Git-Tag: openssl-3.3.0-alpha1~366 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8a1694f22588c0777d642253ffdc307a61245d51;p=thirdparty%2Fopenssl.git apps: Don't print hostname on bio_out during connect. Printing the hostname on bio_out clutters the output and breaks pipe like forwarding via openssl. Print the hostname via bio_err. Fixes #23013 Signed-off-by: Sebastian Andrzej Siewior Reviewed-by: Richard Levitte Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/23056) --- diff --git a/apps/lib/s_socket.c b/apps/lib/s_socket.c index 014c1c0bc0e..ace51686add 100644 --- a/apps/lib/s_socket.c +++ b/apps/lib/s_socket.c @@ -208,7 +208,7 @@ int init_client(int *sock, const char *host, const char *port, hostname = BIO_ADDR_hostname_string(BIO_ADDRINFO_address(ai), 1); if (hostname != NULL) { - BIO_printf(bio_out, "Connecting to %s\n", hostname); + BIO_printf(bio_err, "Connecting to %s\n", hostname); OPENSSL_free(hostname); } /* Remove any stale errors from previous connection attempts */