Skip to content

Commit

Permalink
Prevent NT_STATUS 0xF1000000 errors from appearing when
Browse files Browse the repository at this point in the history
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 used to be commit 78f009b)
  • Loading branch information
jmcdough authored and obnoxxx committed Aug 14, 2008
1 parent e90dc23 commit b48ba00
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source3/libsmb/async_smb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down

0 comments on commit b48ba00

Please sign in to comment.