s3:smb2_server: use xconn->client->sconn in smbd_smb2_io_handler()
authorStefan Metzmacher <metze@samba.org>
Tue, 10 Jun 2014 18:20:58 +0000 (20:20 +0200)
committerMichael Adam <obnox@samba.org>
Fri, 19 Sep 2014 07:15:12 +0000 (09:15 +0200)
xconn->sconn will go away soon.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
source3/smbd/smb2_server.c

index ac6edddcfb43ec213b5c071b817ecab997a72bc2..61d3c8e32b2fd9d16c226ddef3dbcfdd73db6514 100644 (file)
@@ -3218,7 +3218,7 @@ static NTSTATUS smbd_smb2_flush_send_queue(struct smbXsrv_connection *xconn)
 static NTSTATUS smbd_smb2_io_handler(struct smbXsrv_connection *xconn,
                                     uint16_t fde_flags)
 {
-       struct smbd_server_connection *sconn = xconn->sconn;
+       struct smbd_server_connection *sconn = xconn->client->sconn;
        struct smbd_smb2_request_read_state *state = &xconn->smb2.request_read_state;
        struct smbd_smb2_request *req = NULL;
        size_t min_recvfile_size = UINT32_MAX;