1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-15 23:24:37 +03:00

Prevent NT_STATUS 0xF1000000 errors from appearing when

dos errors are used and there is no error.  It should
be mapped directly to NT_STATUS_OK.  smbclient to older
servers didn't work.
This commit is contained in:
Jim McDonough 2008-08-13 18:03:51 -04:00 committed by Michael Adam
parent 34a32db906
commit 78f009b7ef

View File

@ -31,6 +31,12 @@ NTSTATUS cli_pull_error(char *buf)
return NT_STATUS(IVAL(buf, smb_rcls));
}
/* if the client uses dos errors, but there is no error,
we should return no error here, otherwise it looks
like an unknown bad NT_STATUS. jmcd */
if (CVAL(buf, smb_rcls) == 0)
return NT_STATUS_OK;
return NT_STATUS_DOS(CVAL(buf, smb_rcls), SVAL(buf,smb_err));
}