Skip to content

Commit

Permalink
* test/testsockets.c
Browse files Browse the repository at this point in the history
  (sendto_receivefrom): Bail out if apr_socket_bind fails, as has been
   known to happen on solaris if you turn on ipv6.


git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@387950 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Garrett Rooney committed Mar 22, 2006
1 parent ad10639 commit 57eff68
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/testsockets.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,13 @@ static void sendto_receivefrom(abts_case *tc, void *data)

rv = apr_socket_bind(sock, to);
ABTS_INT_EQUAL(tc, APR_SUCCESS, rv);
if (rv != APR_SUCCESS)
return;

rv = apr_socket_bind(sock2, from);
ABTS_INT_EQUAL(tc, APR_SUCCESS, rv);
if (rv != APR_SUCCESS)
return;

len = STRLEN;
rv = apr_socket_sendto(sock2, to, 0, sendbuf, &len);
Expand Down

0 comments on commit 57eff68

Please sign in to comment.