s3:smb2_server: use xconn->client->sconn in smbd_smb2_first_negprot()
authorStefan Metzmacher <metze@samba.org>
Wed, 11 Jun 2014 08:42:01 +0000 (10:42 +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 61d3c8e32b2fd9d16c226ddef3dbcfdd73db6514..8fe28682588e52bb3f97becb503a65c6a9733a01 100644 (file)
@@ -3003,7 +3003,7 @@ static NTSTATUS smbd_smb2_request_next_incoming(struct smbXsrv_connection *xconn
 void smbd_smb2_first_negprot(struct smbXsrv_connection *xconn,
                             const uint8_t *inpdu, size_t size)
 {
-       struct smbd_server_connection *sconn = xconn->sconn;
+       struct smbd_server_connection *sconn = xconn->client->sconn;
        NTSTATUS status;
        struct smbd_smb2_request *req = NULL;