diff --git a/src/proto_uxst.c b/src/proto_uxst.c index 7988e00d1..cd584aa9a 100644 --- a/src/proto_uxst.c +++ b/src/proto_uxst.c @@ -239,7 +239,8 @@ static int uxst_connect_server(struct connection *conn, int flags) return SF_ERR_INTERNAL; } - if ((fd = conn->handle.fd = socket(PF_UNIX, SOCK_STREAM, 0)) == -1) { + fd = conn->handle.fd = sock_create_server_socket(conn); + if (fd == -1) { qfprintf(stderr, "Cannot get a server socket.\n"); if (errno == ENFILE) {