s3:smb2_server: pass smbXsrv_connection to smb2_validate_sequence_number()
authorStefan Metzmacher <metze@samba.org>
Wed, 11 Jun 2014 08:03:27 +0000 (10:03 +0200)
committerMichael Adam <obnox@samba.org>
Wed, 6 Aug 2014 07:51:12 +0000 (09:51 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
source3/smbd/smb2_server.c

index 8efd980a6e353eddafd58ff6c546ff7d4fd2075b..427f81550d960add5fe69c4e4be09001e82eb15a 100644 (file)
@@ -577,10 +577,9 @@ static NTSTATUS smbd_smb2_request_create(struct smbd_server_connection *sconn,
        return NT_STATUS_OK;
 }
 
-static bool smb2_validate_sequence_number(struct smbd_server_connection *sconn,
+static bool smb2_validate_sequence_number(struct smbXsrv_connection *xconn,
                                          uint64_t message_id, uint64_t seq_id)
 {
-       struct smbXsrv_connection *xconn = sconn->conn;
        struct bitmap *credits_bm = xconn->smb2.credits.bitmap;
        unsigned int offset;
        uint64_t seq_tmp;
@@ -711,7 +710,7 @@ static bool smb2_validate_message_id(struct smbd_server_connection *sconn,
                           credit_charge,
                           (unsigned long long)id));
 
-               ok = smb2_validate_sequence_number(sconn, message_id, id);
+               ok = smb2_validate_sequence_number(xconn, message_id, id);
                if (!ok) {
                        return false;
                }