]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
s_socket: continue in loop, on bind fail
authorJoshua Rogers <MegaManSec@users.noreply.github.com>
Fri, 10 Oct 2025 12:06:44 +0000 (20:06 +0800)
committerTomas Mraz <tomas@openssl.org>
Tue, 14 Oct 2025 15:55:41 +0000 (17:55 +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/28814)

apps/lib/s_socket.c

index b2a1e3e51a4b5469905a91698293f130cfd45a5b..9434f953cb253dc3759485266d9ce9dc8f23d897 100644 (file)
@@ -139,7 +139,7 @@ int init_client(int *sock, const char *host, const char *port,
                           BIO_SOCK_REUSEADDR)) {
                 BIO_closesocket(*sock);
                 *sock = INVALID_SOCKET;
-                break;
+                continue;
             }
         }