diff options
| author | Stefan Metzmacher <metze@samba.org> | 2014-06-11 10:03:27 +0200 |
|---|---|---|
| committer | Michael Adam <obnox@samba.org> | 2014-08-06 09:51:12 +0200 |
| commit | aaa072a1f3758a630047de7a12f7f475a595be21 (patch) | |
| tree | 724881963a346ab063ae4591e6a9364777fac2f3 /source3 | |
| parent | 330febb7df3767cc1d1a381d95fa9e007fecff74 (diff) | |
| download | samba-aaa072a1f3758a630047de7a12f7f475a595be21.tar.gz samba-aaa072a1f3758a630047de7a12f7f475a595be21.tar.xz samba-aaa072a1f3758a630047de7a12f7f475a595be21.zip | |
s3:smb2_server: pass smbXsrv_connection to smb2_validate_sequence_number()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3')
| -rw-r--r-- | source3/smbd/smb2_server.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c index 8efd980a6e..427f81550d 100644 --- a/source3/smbd/smb2_server.c +++ b/source3/smbd/smb2_server.c @@ -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; } |
