diff options
author | Stefan Metzmacher <metze@samba.org> | 2014-06-11 11:22:16 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2014-08-06 09:51:13 +0200 |
commit | cedf403bcfb018be1a3d8e05bd8c41ffe3e663fc (patch) | |
tree | a84f34b543a90697475025a949e672ce27e9b141 | |
parent | a319b896870a55a504afe399c9a9f22fe51580bc (diff) | |
download | samba-cedf403bcfb018be1a3d8e05bd8c41ffe3e663fc.tar.gz |
s3:smb2_server: remove unused 'sconn' from smbd_smb2_request_pending_state
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
-rw-r--r-- | source3/smbd/smb2_server.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c index b24d47c5260..b34bea8cf49 100644 --- a/source3/smbd/smb2_server.c +++ b/source3/smbd/smb2_server.c @@ -1278,7 +1278,6 @@ static NTSTATUS smb2_send_async_interim_response(const struct smbd_smb2_request } struct smbd_smb2_request_pending_state { - struct smbd_server_connection *sconn; struct smbd_smb2_send_queue queue_entry; uint8_t buf[NBT_HDR_SIZE + SMB2_TF_HDR_SIZE + SMB2_HDR_BODY + 0x08 + 1]; struct iovec vector[1 + SMBD_SMB2_NUM_IOV_PER_REQ]; @@ -1426,8 +1425,7 @@ static void smbd_smb2_request_pending_timer(struct tevent_context *ev, struct smbd_smb2_request *req = talloc_get_type_abort(private_data, struct smbd_smb2_request); - struct smbd_server_connection *sconn = req->sconn; - struct smbXsrv_connection *xconn = sconn->conn; + struct smbXsrv_connection *xconn = req->xconn; struct smbd_smb2_request_pending_state *state = NULL; uint8_t *outhdr = NULL; const uint8_t *inhdr = NULL; @@ -1475,7 +1473,6 @@ static void smbd_smb2_request_pending_timer(struct tevent_context *ev, nt_errstr(NT_STATUS_NO_MEMORY)); return; } - state->sconn = req->sconn; tf = state->buf + NBT_HDR_SIZE; tf_len = SMB2_TF_HDR_SIZE; @@ -1603,7 +1600,7 @@ static void smbd_smb2_request_pending_timer(struct tevent_context *ev, status = smbd_smb2_flush_send_queue(xconn); if (!NT_STATUS_IS_OK(status)) { - smbd_server_connection_terminate(sconn, + smbd_server_connection_terminate(req->sconn, nt_errstr(status)); return; } |