harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r746961 - /harmony/enhanced/classlib/branches/java6/modules/luni/src/main/native/luni/unix/helpers.c
Date Mon, 23 Feb 2009 11:16:49 GMT
Author: hindessm
Date: Mon Feb 23 11:16:48 2009
New Revision: 746961

URL: http://svn.apache.org/viewvc?rev=746961&view=rev
Log:
Return after throwing exceptions.

Modified:
    harmony/enhanced/classlib/branches/java6/modules/luni/src/main/native/luni/unix/helpers.c

Modified: harmony/enhanced/classlib/branches/java6/modules/luni/src/main/native/luni/unix/helpers.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/luni/src/main/native/luni/unix/helpers.c?rev=746961&r1=746960&r2=746961&view=diff
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/luni/src/main/native/luni/unix/helpers.c
(original)
+++ harmony/enhanced/classlib/branches/java6/modules/luni/src/main/native/luni/unix/helpers.c
Mon Feb 23 11:16:48 2009
@@ -360,6 +360,7 @@
 
 	if ((fd = socket(PF_INET, SOCK_STREAM, 0)) == -1) {
 		throwJavaNetSocketException (env, HYPORT_ERROR_SOCKET_NORECOVERY);
+                return 0;
 	}
 
 	memset(buff, 0, sizeof(buff));
@@ -499,6 +500,7 @@
 	if (ioctl(fd, SIOCGIFCONF, (char *)&ifc) != 0) {
 		close(fd);	
 		throwJavaNetSocketException (env, HYPORT_ERROR_SOCKET_NORECOVERY);		
+		return NULL; 
 	}
 
 	ifr = ifc.ifc_req;



Mime
View raw message