X-Git-Url: https://git.openssl.org/?a=blobdiff_plain;f=test%2Fssltest_old.c;fp=test%2Fssltest_old.c;h=34705c34726f865cd875302c5946dde80a48c73c;hb=de5b3a8645a3b2dd22fa8866e64488eb2b69777d;hp=946948534ad8b4434bc76207727bd59b2df72b82;hpb=d47eb76cd5fef2495c23705733d7034370063556;p=openssl.git diff --git a/test/ssltest_old.c b/test/ssltest_old.c index 946948534a..34705c3472 100644 --- a/test/ssltest_old.c +++ b/test/ssltest_old.c @@ -1836,7 +1836,8 @@ int doit_localhost(SSL *s_ssl, SSL *c_ssl, int family, long count, int err_in_client = 0; int err_in_server = 0; - acpt = BIO_new_accept("0"); + acpt = BIO_new_accept(family == BIO_FAMILY_IPV4 ? "127.0.0.1:0" + : "[::1]:0"); if (acpt == NULL) goto err; BIO_set_accept_ip_family(acpt, family);