diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-07-22 09:39:52 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-07-22 17:06:07 +0200 |
commit | 13dbd5021b8f661e4fe38099e1aed03e5b0c02d6 (patch) | |
tree | 58302b4de447e72d295c902852d2342ed06ecd88 /source3/libsmb/smb2cli_base.c | |
parent | 6d1757f1893e8f15c645eca44377de2f5a67232a (diff) | |
download | samba-13dbd5021b8f661e4fe38099e1aed03e5b0c02d6.tar.gz samba-13dbd5021b8f661e4fe38099e1aed03e5b0c02d6.tar.bz2 samba-13dbd5021b8f661e4fe38099e1aed03e5b0c02d6.zip |
s3:libsmb: move cli_state->fd to cli_state->conn.fd
metze
Diffstat (limited to 'source3/libsmb/smb2cli_base.c')
-rw-r--r-- | source3/libsmb/smb2cli_base.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source3/libsmb/smb2cli_base.c b/source3/libsmb/smb2cli_base.c index a1ecfb4e38..88b890438a 100644 --- a/source3/libsmb/smb2cli_base.c +++ b/source3/libsmb/smb2cli_base.c @@ -132,7 +132,7 @@ static bool smb2cli_req_set_pending(struct tevent_req *req) * We're the first ones, add the read_smb request that waits for the * answer from the server */ - subreq = read_smb_send(cli->conn.pending, state->ev, cli->fd); + subreq = read_smb_send(cli->conn.pending, state->ev, cli->conn.fd); if (subreq == NULL) { smb2cli_req_unset_pending(req); return false; @@ -143,10 +143,10 @@ static bool smb2cli_req_set_pending(struct tevent_req *req) static void smb2cli_notify_pending(struct cli_state *cli, NTSTATUS status) { - if (cli->fd != -1) { - close(cli->fd); - cli->fd = -1; + if (cli->conn.fd != -1) { + close(cli->conn.fd); } + cli->conn.fd = -1; /* * Cancel all pending requests. We don't do a for-loop walking @@ -294,7 +294,7 @@ NTSTATUS smb2cli_req_compound_submit(struct tevent_req **reqs, iov[0].iov_len = sizeof(state->nbt); subreq = writev_send(state, state->ev, state->cli->conn.outgoing, - state->cli->fd, false, iov, num_iov); + state->cli->conn.fd, false, iov, num_iov); if (subreq == NULL) { return NT_STATUS_NO_MEMORY; } @@ -572,7 +572,7 @@ static void smb2cli_inbuf_received(struct tevent_req *subreq) * add the read_smb request that waits for the * next answer from the server */ - subreq = read_smb_send(cli->conn.pending, state->ev, cli->fd); + subreq = read_smb_send(cli->conn.pending, state->ev, cli->conn.fd); if (subreq == NULL) { smb2cli_notify_pending(cli, NT_STATUS_NO_MEMORY); return; |