mirror of
https://github.com/samba-team/samba.git
synced 2025-02-04 17:47:26 +03:00
r21594: give the same error in all resolve backends
metze (This used to be commit 5534ba591deb362e30e40afff923af4b890ab7a9)
This commit is contained in:
parent
e31d922592
commit
c6b66db2b2
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user