summaryrefslogtreecommitdiff
path: root/libcli
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-11-16 11:11:18 +0100
committerStefan Metzmacher <metze@samba.org>2011-11-24 19:02:30 +0100
commit4529395d3c955475de50a79eea767716eba57be7 (patch)
tree9c2253ee1a984edd60901ee7938f8e6fc9ad266d /libcli
parent5e7cf194d2d25787e3af807a3a37f570ce5298dc (diff)
downloadsamba-4529395d3c955475de50a79eea767716eba57be7.tar.gz
samba-4529395d3c955475de50a79eea767716eba57be7.tar.bz2
samba-4529395d3c955475de50a79eea767716eba57be7.zip
smbXcli: add state->smb1.recv_{cmd,status,iov}
In the following commits we will need to remember a few more things. metze
Diffstat (limited to 'libcli')
-rw-r--r--libcli/smb/smbXcli_base.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/libcli/smb/smbXcli_base.c b/libcli/smb/smbXcli_base.c
index 22bd34175e..a48ef69aa7 100644
--- a/libcli/smb/smbXcli_base.c
+++ b/libcli/smb/smbXcli_base.c
@@ -146,6 +146,11 @@ struct smbXcli_req_state {
int chain_num;
int chain_length;
struct tevent_req **chained_requests;
+
+ uint8_t recv_cmd;
+ NTSTATUS recv_status;
+ /* always an array of 3 talloc elements */
+ struct iovec *recv_iov;
} smb1;
struct {
@@ -819,6 +824,14 @@ struct tevent_req *smb1cli_req_create(TALLOC_CTX *mem_ctx,
state->ev = ev;
state->conn = conn;
+ state->smb1.recv_cmd = 0xFF;
+ state->smb1.recv_status = NT_STATUS_INTERNAL_ERROR;
+ state->smb1.recv_iov = talloc_zero_array(state, struct iovec, 3);
+ if (state->smb1.recv_iov == NULL) {
+ TALLOC_FREE(req);
+ return NULL;
+ }
+
smb1cli_req_flags(conn->protocol,
conn->smb1.capabilities,
smb_command,