harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From py...@apache.org
Subject svn commit: r521157 - /harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hysock.c
Date Thu, 22 Mar 2007 09:04:42 GMT
Author: pyang
Date: Thu Mar 22 02:04:41 2007
New Revision: 521157

URL: http://svn.apache.org/viewvc?view=rev&rev=521157
Log:
Apply patch for HARMONY-2387([classlib][luni] org.apache.harmony.tests.internal.net.www.protocol.http.HttpURLConnectionTest.testUsingProxy()
intermittently fails)

Modified:
    harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hysock.c

Modified: harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hysock.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hysock.c?view=diff&rev=521157&r1=521156&r2=521157
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hysock.c (original)
+++ harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hysock.c Thu
Mar 22 02:04:41 2007
@@ -5247,7 +5247,7 @@
                        SOL_SOCKET, SO_ERROR, (char *) &errorVal,
                        &errorValLen) >= 0)
                     {
-                      return findError (errorVal);
+                        return errorVal ? findError(errorVal):0; 
                     }
                   else
                     {
@@ -5269,7 +5269,7 @@
                   (((struct selectFDSet_struct *) *context)->sock, SOL_SOCKET,
                    SO_ERROR, (char *) &errorVal, &errorValLen) >= 0)
                 {
-                  return findError (errorVal);
+                     return errorVal ? findError(errorVal):0; 
                 }
               rc = errno;
               return portLibrary->error_set_last_error (portLibrary, rc,



Mime
View raw message