summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-06-04 16:26:27 +0200
committerStefan Metzmacher <metze@samba.org>2012-06-05 17:33:49 +0200
commit2b5d4d4267fe00578124c076cd1c7d0038765fa1 (patch)
treef968ad1f4603219d54f27e0db0fb9a21f4f67e15
parentae627a5da8147d63739bd5645a0657ee00c51c20 (diff)
downloadsamba-2b5d4d4267fe00578124c076cd1c7d0038765fa1.tar.gz
samba-2b5d4d4267fe00578124c076cd1c7d0038765fa1.tar.bz2
samba-2b5d4d4267fe00578124c076cd1c7d0038765fa1.zip
s3:libsmb: use inhdr instead of inbuf in tree connect related functions
metze
-rw-r--r--source3/libsmb/cliconnect.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c
index 520dc43715..9ddfe9501c 100644
--- a/source3/libsmb/cliconnect.c
+++ b/source3/libsmb/cliconnect.c
@@ -2413,7 +2413,7 @@ static void cli_tcon_andx_done(struct tevent_req *subreq)
req, struct cli_tcon_andx_state);
struct cli_state *cli = state->cli;
uint8_t *in;
- char *inbuf;
+ uint8_t *inhdr;
uint8_t wct;
uint16_t *vwv;
uint32_t num_bytes;
@@ -2428,12 +2428,12 @@ static void cli_tcon_andx_done(struct tevent_req *subreq)
return;
}
- inbuf = (char *)in;
+ inhdr = in + NBT_HDR_SIZE;
if (num_bytes) {
if (clistr_pull_talloc(cli,
- inbuf,
- SVAL(inbuf, smb_flg2),
+ (const char *)inhdr,
+ SVAL(inhdr, HDR_FLG2),
&cli->dev,
bytes,
num_bytes,
@@ -2465,7 +2465,7 @@ static void cli_tcon_andx_done(struct tevent_req *subreq)
cli->dfsroot = ((SVAL(vwv+2, 0) & SMB_SHARE_IN_DFS) != 0);
}
- cli->smb1.tid = SVAL(inbuf,smb_tid);
+ cli->smb1.tid = SVAL(inhdr, HDR_TID);
tevent_req_done(req);
}