svn commit: samba r21594 - in branches/SAMBA_4_0/source/libcli/resolve: .

metze at samba.org metze at samba.org
Wed Feb 28 17:26:28 GMT 2007


Author: metze
Date: 2007-02-28 17:26:25 +0000 (Wed, 28 Feb 2007)
New Revision: 21594

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

Log:
give the same error in all resolve backends

metze
Modified:
   branches/SAMBA_4_0/source/libcli/resolve/host.c


Changeset:
Modified: branches/SAMBA_4_0/source/libcli/resolve/host.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/resolve/host.c	2007-02-28 17:25:29 UTC (rev 21593)
+++ branches/SAMBA_4_0/source/libcli/resolve/host.c	2007-02-28 17:26:25 UTC (rev 21594)
@@ -101,7 +101,7 @@
 	   the right thing to do */
 	ret = read(state->child_fd, address, sizeof(address)-1);
 	if (ret <= 0) {
-		composite_error(c, NT_STATUS_BAD_NETWORK_NAME);
+		composite_error(c, NT_STATUS_OBJECT_NAME_NOT_FOUND);
 		return;
 	}
 
@@ -109,7 +109,7 @@
 	address[ret] = 0;
 	if (strcmp(address, "0.0.0.0") == 0 ||
 	    inet_addr(address) == INADDR_NONE) {
-		composite_error(c, NT_STATUS_BAD_NETWORK_NAME);
+		composite_error(c, NT_STATUS_OBJECT_NAME_NOT_FOUND);
 		return;
 	}
 



More information about the samba-cvs mailing list