diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-02-07 12:10:38 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:09:35 -0500 |
commit | b69a2c0d6bc0643b98ace2489cbcc2d40b99baeb (patch) | |
tree | ffa39f5dca42524ebc0e2002da56154b301321d7 /source4/libcli/nbt/namequery.c | |
parent | fcb78064bf760ab72d213b604cef9688edf42b92 (diff) | |
download | samba-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/libcli/nbt/namequery.c')
-rw-r--r-- | source4/libcli/nbt/namequery.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/libcli/nbt/namequery.c b/source4/libcli/nbt/namequery.c index ddef2a7d07..32fcad2052 100644 --- a/source4/libcli/nbt/namequery.c +++ b/source4/libcli/nbt/namequery.c @@ -91,6 +91,7 @@ NTSTATUS nbt_name_query_recv(struct nbt_name_request *req, return NT_STATUS_INVALID_NETWORK_RESPONSE; } + io->out.rcode = packet->operation & NBT_RCODE; io->out.name = packet->answers[0].name; io->out.num_addrs = packet->answers[0].rdata.netbios.length / 6; io->out.reply_addrs = talloc_array(mem_ctx, const char *, io->out.num_addrs); @@ -184,6 +185,7 @@ NTSTATUS nbt_name_status_recv(struct nbt_name_request *req, return NT_STATUS_INVALID_NETWORK_RESPONSE; } + io->out.rcode = packet->operation & NBT_RCODE; io->out.name = packet->answers[0].name; talloc_steal(mem_ctx, io->out.name.name); talloc_steal(mem_ctx, io->out.name.scope); |