diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-10-26 15:46:33 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-10-26 16:18:28 +0200 |
commit | 9a3e5965b468bbaf432991ab0719131c5e293eb2 (patch) | |
tree | 81b3f90e0acc085b2270ff30e2692188fb8f2afb /source3/libsmb | |
parent | f3166e75ef0cfbeafb748dd601af6391def8503a (diff) | |
download | samba-9a3e5965b468bbaf432991ab0719131c5e293eb2.tar.gz samba-9a3e5965b468bbaf432991ab0719131c5e293eb2.tar.bz2 samba-9a3e5965b468bbaf432991ab0719131c5e293eb2.zip |
s3:libsmb: avoid using smb_flg2 in cli_trans.c
metze
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/clitrans.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/libsmb/clitrans.c b/source3/libsmb/clitrans.c index 1e98fc6d5d..97e39b3250 100644 --- a/source3/libsmb/clitrans.c +++ b/source3/libsmb/clitrans.c @@ -490,6 +490,7 @@ static void cli_trans_done(struct tevent_req *subreq) req, struct cli_trans_state); NTSTATUS status; bool sent_all; + const uint8_t *inhdr; uint8_t wct; uint16_t *vwv; uint32_t num_bytes; @@ -521,6 +522,7 @@ static void cli_trans_done(struct tevent_req *subreq) if (NT_STATUS_IS_ERR(status)) { goto fail; } + inhdr = inbuf + NBT_HDR_SIZE; sent_all = ((state->param_sent == state->num_param) && (state->data_sent == state->num_data)); @@ -579,7 +581,7 @@ static void cli_trans_done(struct tevent_req *subreq) if ((state->rparam.total == state->rparam.received) && (state->rdata.total == state->rdata.received)) { - state->recv_flags2 = SVAL(inbuf, smb_flg2); + state->recv_flags2 = SVAL(inhdr, HDR_FLG2); cli_trans_cleanup_primary(state); tevent_req_done(req); return; |