summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-09-12 09:45:13 +0200
committerStefan Metzmacher <metze@samba.org>2011-09-12 19:12:21 +0200
commit1dc3ac242a9027575d0119ec3547ae508e2cb2a9 (patch)
tree698f4ee65d421f4e0b2ec2423b2b010c4b6b21a9
parent81b965af892fb279b71ebdc8a9541d2f157368c6 (diff)
downloadsamba-1dc3ac242a9027575d0119ec3547ae508e2cb2a9.tar.gz
samba-1dc3ac242a9027575d0119ec3547ae508e2cb2a9.tar.bz2
samba-1dc3ac242a9027575d0119ec3547ae508e2cb2a9.zip
s3:libsmb: let cli_pull_raw_error() return NT_STATUS_OK as DOS-Error success
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Sep 12 19:12:21 CEST 2011 on sn-devel-104
-rw-r--r--source3/libsmb/async_smb.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/libsmb/async_smb.c b/source3/libsmb/async_smb.c
index 09103321be..df205dd9d0 100644
--- a/source3/libsmb/async_smb.c
+++ b/source3/libsmb/async_smb.c
@@ -30,9 +30,14 @@
static NTSTATUS cli_pull_raw_error(const uint8_t *buf)
{
uint32_t flags2 = SVAL(buf, smb_flg2);
+ NTSTATUS status = NT_STATUS(IVAL(buf, smb_rcls));
+
+ if (NT_STATUS_IS_OK(status)) {
+ return NT_STATUS_OK;
+ }
if (flags2 & FLAGS2_32_BIT_ERROR_CODES) {
- return NT_STATUS(IVAL(buf, smb_rcls));
+ return status;
}
return NT_STATUS_DOS(CVAL(buf, smb_rcls), SVAL(buf,smb_err));