summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/async_smb.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/libsmb/async_smb.c b/source3/libsmb/async_smb.c
index 283dec6a5a..76f7781d52 100644
--- a/source3/libsmb/async_smb.c
+++ b/source3/libsmb/async_smb.c
@@ -29,8 +29,9 @@
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));
+ const uint8_t *hdr = buf + NBT_HDR_SIZE;
+ uint32_t flags2 = SVAL(hdr, HDR_FLG2);
+ NTSTATUS status = NT_STATUS(IVAL(hdr, HDR_RCLS));
if (NT_STATUS_IS_OK(status)) {
return NT_STATUS_OK;
@@ -40,7 +41,7 @@ static NTSTATUS cli_pull_raw_error(const uint8_t *buf)
return status;
}
- return NT_STATUS_DOS(CVAL(buf, smb_rcls), SVAL(buf,smb_err));
+ return NT_STATUS_DOS(CVAL(hdr, HDR_RCLS), SVAL(hdr, HDR_ERR));
}
/**