summaryrefslogtreecommitdiff
path: root/source4/utils
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-02-07 12:10:38 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:09:35 -0500
commitb69a2c0d6bc0643b98ace2489cbcc2d40b99baeb (patch)
treeffa39f5dca42524ebc0e2002da56154b301321d7 /source4/utils
parentfcb78064bf760ab72d213b604cef9688edf42b92 (diff)
downloadsamba-b69a2c0d6bc0643b98ace2489cbcc2d40b99baeb.tar.gz
samba-b69a2c0d6bc0643b98ace2489cbcc2d40b99baeb.tar.bz2
samba-b69a2c0d6bc0643b98ace2489cbcc2d40b99baeb.zip
r5261: translate nbt rcode errors to NTSTATUS codes
(This used to be commit 554d1b70e73faeb1f5ecf88f31c5810d86d76200)
Diffstat (limited to 'source4/utils')
-rw-r--r--source4/utils/nmblookup.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/utils/nmblookup.c b/source4/utils/nmblookup.c
index f41ab4cc6e..36550b8933 100644
--- a/source4/utils/nmblookup.c
+++ b/source4/utils/nmblookup.c
@@ -155,6 +155,10 @@ static NTSTATUS do_node_query(struct nbt_name_socket *nbtsock,
status = nbt_name_query(nbtsock, nbtsock, &io);
NT_STATUS_NOT_OK_RETURN(status);
+
+ if (io.out.rcode != 0) {
+ return nbt_rcode_to_ntstatus(io.out.rcode);
+ }
for (i=0;i<io.out.num_addrs;i++) {
printf("%s %s<%02x>\n",