svn commit: samba r7660 - in branches/SAMBA_4_0/source/lib/socket: .

tridge at samba.org tridge at samba.org
Fri Jun 17 00:10:14 GMT 2005


Author: tridge
Date: 2005-06-17 00:10:13 +0000 (Fri, 17 Jun 2005)
New Revision: 7660

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=7660

Log:
improved error handling in socket_connect_ev() (it matters when name
resolution fails)

Modified:
   branches/SAMBA_4_0/source/lib/socket/connect.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/socket/connect.c
===================================================================
--- branches/SAMBA_4_0/source/lib/socket/connect.c	2005-06-17 00:09:17 UTC (rev 7659)
+++ branches/SAMBA_4_0/source/lib/socket/connect.c	2005-06-17 00:10:13 UTC (rev 7660)
@@ -56,6 +56,9 @@
 
 	status = socket_connect(sock, my_address, my_port, 
 				server_address, server_port, flags);
+	if (NT_STATUS_IS_ERR(status)) {
+		return status;
+	}
 
 	event_add_fd(ev, tmp_ctx, socket_get_fd(sock), EVENT_FD_WRITE, 
 		     socket_connect_handler, &status);



More information about the samba-cvs mailing list