summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-10-24 17:47:50 +0200
committerStefan Metzmacher <metze@samba.org>2011-10-25 01:47:21 +0200
commitd670d060fc43a77ac7d320ed9024c049c59d9963 (patch)
tree075404018017ba1f0c8f05da3f6b5bc1bde0b141 /source3
parent1fa7300037447c6e01438509343afd2e186f066c (diff)
downloadsamba-d670d060fc43a77ac7d320ed9024c049c59d9963.tar.gz
samba-d670d060fc43a77ac7d320ed9024c049c59d9963.tar.bz2
samba-d670d060fc43a77ac7d320ed9024c049c59d9963.zip
s3:libsmb: use HDR_* defines in cli_pull_raw_error()
metze
Diffstat (limited to 'source3')
-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));
}
/**