--- a/memcache/apr_memcache.c 2023/02/03 15:06:16 1907241 +++ b/memcache/apr_memcache.c 2023/02/03 15:12:10 1907242 @@ -290,9 +290,9 @@ apr_status_t rv = APR_SUCCESS; apr_sockaddr_t *sa; #if APR_HAVE_SOCKADDR_UN - apr_int32_t family = conn->ms->host[0] != '/' ? APR_INET : APR_UNIX; + apr_int32_t family = conn->ms->host[0] != '/' ? APR_UNSPEC : APR_UNIX; #else - apr_int32_t family = APR_INET; + apr_int32_t family = APR_UNSPEC; #endif rv = apr_sockaddr_info_get(&sa, conn->ms->host, family, conn->ms->port, 0, conn->p); @@ -328,9 +328,9 @@ apr_pool_t *tp; apr_memcache_server_t *ms = params; #if APR_HAVE_SOCKADDR_UN - apr_int32_t family = ms->host[0] != '/' ? APR_INET : APR_UNIX; + apr_int32_t family = ms->host[0] != '/' ? APR_UNSPEC : APR_UNIX; #else - apr_int32_t family = APR_INET; + apr_int32_t family = APR_UNSPEC; #endif rv = apr_pool_create(&np, pool);