From c6b66db2b23f5a590152b3909da1193dc54d21ec Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 28 Feb 2007 17:26:25 +0000 Subject: r21594: give the same error in all resolve backends metze (This used to be commit 5534ba591deb362e30e40afff923af4b890ab7a9) --- source4/libcli/resolve/host.c | 4 ++-- 1 file 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; } -- cgit