apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From roo...@apache.org
Subject svn commit: r387950 - /apr/apr/trunk/test/testsockets.c
Date Wed, 22 Mar 2006 21:22:51 GMT
Author: rooneg
Date: Wed Mar 22 13:22:49 2006
New Revision: 387950

URL: http://svn.apache.org/viewcvs?rev=387950&view=rev
Log:
* test/testsockets.c
  (sendto_receivefrom): Bail out if apr_socket_bind fails, as has been
   known to happen on solaris if you turn on ipv6.

Modified:
    apr/apr/trunk/test/testsockets.c

Modified: apr/apr/trunk/test/testsockets.c
URL: http://svn.apache.org/viewcvs/apr/apr/trunk/test/testsockets.c?rev=387950&r1=387949&r2=387950&view=diff
==============================================================================
--- apr/apr/trunk/test/testsockets.c (original)
+++ apr/apr/trunk/test/testsockets.c Wed Mar 22 13:22:49 2006
@@ -146,8 +146,13 @@
 
     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);



Mime
View raw message