diff options
Diffstat (limited to 'test/testpoll.c')
-rw-r--r-- | test/testpoll.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/testpoll.c b/test/testpoll.c index 0f12b2936..a6247d332 100644 --- a/test/testpoll.c +++ b/test/testpoll.c @@ -72,7 +72,7 @@ static int make_socket(apr_socket_t **sock, apr_sockaddr_t **sa, apr_port_t port printf("couldn't create control socket information, shutting down"); return 1; } - if (apr_socket_create(sock, (*sa)->sa.sin.sin_family, SOCK_DGRAM, p) + if (apr_socket_create(sock, (*sa)->family, SOCK_DGRAM, p) != APR_SUCCESS){ printf("couldn't create UDP socket, shutting down"); return 1; |