Adapt BIO_new_accept() to call BIO_set_accept_name()
[openssl.git] / crypto / bio / bss_acpt.c
index 628da9e6348b53282e3b605e89e369e2875a9995..6fb971a50d513ecfd7120e5317a5f724868d7b7b 100644 (file)
@@ -548,7 +548,7 @@ BIO *BIO_new_accept(const char *str)
     ret = BIO_new(BIO_s_accept());
     if (ret == NULL)
         return (NULL);
-    if (BIO_set_accept_port(ret, str))
+    if (BIO_set_accept_name(ret, str))
         return (ret);
     BIO_free(ret);
     return (NULL);