mirror of
https://github.com/samba-team/samba.git
synced 2025-01-24 02:04:21 +03:00
smbXsrv: rename smb2srv_session_lookup -> smb2srv_session_lookup_conn
This is in preparation of adding a variant that operates on the client and does in particular not verify that the connection belongs to a session as a channel. Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Signed-off-by: Michael Adam <obnox@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
parent
c765d11347
commit
d6acf950e4
@ -553,9 +553,9 @@ NTSTATUS smb1srv_session_lookup(struct smbXsrv_connection *conn,
|
||||
uint16_t vuid, NTTIME now,
|
||||
struct smbXsrv_session **session);
|
||||
NTSTATUS smb2srv_session_table_init(struct smbXsrv_connection *conn);
|
||||
NTSTATUS smb2srv_session_lookup(struct smbXsrv_connection *conn,
|
||||
uint64_t session_id, NTTIME now,
|
||||
struct smbXsrv_session **session);
|
||||
NTSTATUS smb2srv_session_lookup_conn(struct smbXsrv_connection *conn,
|
||||
uint64_t session_id, NTTIME now,
|
||||
struct smbXsrv_session **session);
|
||||
struct smbXsrv_session_global0;
|
||||
NTSTATUS smbXsrv_session_global_traverse(
|
||||
int (*fn)(struct smbXsrv_session_global0 *, void *),
|
||||
|
@ -450,10 +450,10 @@ void send_break_message_smb2(files_struct *fsp,
|
||||
*/
|
||||
xconn = fsp->conn->sconn->client->connections;
|
||||
|
||||
status = smb2srv_session_lookup(xconn,
|
||||
fsp->vuid,
|
||||
now,
|
||||
&session);
|
||||
status = smb2srv_session_lookup_conn(xconn,
|
||||
fsp->vuid,
|
||||
now,
|
||||
&session);
|
||||
if (NT_STATUS_EQUAL(status, NT_STATUS_USER_SESSION_DELETED) ||
|
||||
(session == NULL))
|
||||
{
|
||||
|
@ -393,7 +393,8 @@ static NTSTATUS smbd_smb2_inbuf_parse_compound(struct smbXsrv_connection *xconn,
|
||||
goto inval;
|
||||
}
|
||||
|
||||
status = smb2srv_session_lookup(xconn, uid, now, &s);
|
||||
status = smb2srv_session_lookup_conn(xconn, uid, now,
|
||||
&s);
|
||||
if (s == NULL) {
|
||||
DEBUG(1, ("invalid session[%llu] in "
|
||||
"SMB2_TRANSFORM header\n",
|
||||
@ -1833,9 +1834,9 @@ static NTSTATUS smbd_smb2_request_check_session(struct smbd_smb2_request *req)
|
||||
req->last_session_id = 0;
|
||||
|
||||
/* lookup an existing session */
|
||||
status = smb2srv_session_lookup(req->xconn,
|
||||
in_session_id, now,
|
||||
&session);
|
||||
status = smb2srv_session_lookup_conn(req->xconn,
|
||||
in_session_id, now,
|
||||
&session);
|
||||
if (session) {
|
||||
req->session = session;
|
||||
req->last_session_id = in_session_id;
|
||||
|
@ -1767,9 +1767,9 @@ static NTSTATUS smb2srv_session_lookup_raw(struct smbXsrv_session_table *table,
|
||||
session);
|
||||
}
|
||||
|
||||
NTSTATUS smb2srv_session_lookup(struct smbXsrv_connection *conn,
|
||||
uint64_t session_id, NTTIME now,
|
||||
struct smbXsrv_session **session)
|
||||
NTSTATUS smb2srv_session_lookup_conn(struct smbXsrv_connection *conn,
|
||||
uint64_t session_id, NTTIME now,
|
||||
struct smbXsrv_session **session)
|
||||
{
|
||||
struct smbXsrv_session_table *table = conn->client->session_table;
|
||||
return smb2srv_session_lookup_raw(table, conn, session_id, now,
|
||||
|
Loading…
x
Reference in New Issue
Block a user