diff options
author | Andrew Tridgell <tridge@samba.org> | 2008-09-30 08:42:12 -0700 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2008-09-30 08:46:00 -0700 |
commit | be050125b60028ab05dfd685291d2163c2e5903a (patch) | |
tree | 13a3d30fb168f11b5974832409c76c939732fe57 /source4/libcli/resolve/bcast.c | |
parent | 4f07894c29996eb3e30fc79287d224ec2dbd80ee (diff) | |
download | samba-be050125b60028ab05dfd685291d2163c2e5903a.tar.gz samba-be050125b60028ab05dfd685291d2163c2e5903a.tar.bz2 samba-be050125b60028ab05dfd685291d2163c2e5903a.zip |
- make bcast name resolution match other name resolution modules for
host not found errors
- when we have no resolve context return NT_STATUS_OBJECT_NAME_NOT_FOUND
Diffstat (limited to 'source4/libcli/resolve/bcast.c')
-rw-r--r-- | source4/libcli/resolve/bcast.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source4/libcli/resolve/bcast.c b/source4/libcli/resolve/bcast.c index 2e2eb05397..ca78a2ce43 100644 --- a/source4/libcli/resolve/bcast.c +++ b/source4/libcli/resolve/bcast.c @@ -75,7 +75,13 @@ struct composite_context *resolve_name_bcast_send(TALLOC_CTX *mem_ctx, NTSTATUS resolve_name_bcast_recv(struct composite_context *c, TALLOC_CTX *mem_ctx, const char **reply_addr) { - return resolve_name_nbtlist_recv(c, mem_ctx, reply_addr); + NTSTATUS status = resolve_name_nbtlist_recv(c, mem_ctx, reply_addr); + if (NT_STATUS_EQUAL(status, NT_STATUS_IO_TIMEOUT)) { + /* this makes much more sense for a bcast name resolution + timeout */ + status = NT_STATUS_OBJECT_NAME_NOT_FOUND; + } + return status; } /* |