summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-06-08 16:41:11 +0200
committerJeremy Allison <jra@samba.org>2011-06-10 19:27:05 +0200
commit10bb088cf1e005fd047c09afcf6b5b8999d416fe (patch)
tree1997d26e3a83c6a81eec0e53fa00463fe0f56faf
parent5146c9ba9df063d6611abe356f9262adb027b091 (diff)
downloadsamba-10bb088cf1e005fd047c09afcf6b5b8999d416fe.tar.gz
samba-10bb088cf1e005fd047c09afcf6b5b8999d416fe.tar.bz2
samba-10bb088cf1e005fd047c09afcf6b5b8999d416fe.zip
s3:libsmb/clitrans: use subreq2 as variable for the secondary requests
metze
-rw-r--r--source3/libsmb/clitrans.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/source3/libsmb/clitrans.c b/source3/libsmb/clitrans.c
index 82a73ee2c0..cf1f725186 100644
--- a/source3/libsmb/clitrans.c
+++ b/source3/libsmb/clitrans.c
@@ -516,25 +516,27 @@ static void cli_trans_done(struct tevent_req *subreq)
if (!sent_all) {
int iov_count;
+ struct tevent_req *subreq2;
TALLOC_FREE(subreq);
cli_trans_format(state, &wct, &iov_count);
- subreq = cli_smb_req_create(state, state->ev, state->cli,
- state->cmd + 1, 0, wct, state->vwv,
- iov_count, state->iov);
- if (tevent_req_nomem(subreq, req)) {
+ subreq2 = cli_smb_req_create(state, state->ev, state->cli,
+ state->cmd + 1, 0, wct, state->vwv,
+ iov_count, state->iov);
+ if (tevent_req_nomem(subreq2, req)) {
return;
}
- cli_smb_req_set_mid(subreq, state->mid);
+ cli_smb_req_set_mid(subreq2, state->mid);
- status = cli_smb_req_send(subreq);
+ status = cli_smb_req_send(subreq2);
if (!NT_STATUS_IS_OK(status)) {
goto fail;
}
- tevent_req_set_callback(subreq, cli_trans_done, req);
+ tevent_req_set_callback(subreq2, cli_trans_done2, req);
+
return;
}