summaryrefslogtreecommitdiff
path: root/source4/libcli
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-02-28 17:26:25 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:49:03 -0500
commitc6b66db2b23f5a590152b3909da1193dc54d21ec (patch)
tree43ee2bff09ae5c66b945b6f0cbc9d02933e50fb0 /source4/libcli
parente31d922592b3bb037daff487f0b68c719e7584d4 (diff)
downloadsamba-c6b66db2b23f5a590152b3909da1193dc54d21ec.tar.gz
samba-c6b66db2b23f5a590152b3909da1193dc54d21ec.tar.bz2
samba-c6b66db2b23f5a590152b3909da1193dc54d21ec.zip
r21594: give the same error in all resolve backends
metze (This used to be commit 5534ba591deb362e30e40afff923af4b890ab7a9)
Diffstat (limited to 'source4/libcli')
-rw-r--r--source4/libcli/resolve/host.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/libcli/resolve/host.c b/source4/libcli/resolve/host.c
index f84a7dc808..43467cd274 100644
--- a/source4/libcli/resolve/host.c
+++ b/source4/libcli/resolve/host.c
@@ -101,7 +101,7 @@ static void pipe_handler(struct event_context *ev, struct fd_event *fde,
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 @@ static void pipe_handler(struct event_context *ev, struct fd_event *fde,
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;
}