mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
s3:smb2_server: pass smbXsrv_connection to smbd_initialize_smb2()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
This commit is contained in:
parent
3a622c785c
commit
694c048bbd
@ -198,10 +198,8 @@ bool smbd_is_smb2_header(const uint8_t *inbuf, size_t size)
|
||||
return true;
|
||||
}
|
||||
|
||||
static NTSTATUS smbd_initialize_smb2(struct smbd_server_connection *sconn)
|
||||
static NTSTATUS smbd_initialize_smb2(struct smbXsrv_connection *xconn)
|
||||
{
|
||||
struct smbXsrv_connection *xconn = sconn->conn;
|
||||
|
||||
TALLOC_FREE(xconn->transport.fde);
|
||||
|
||||
xconn->smb2.credits.seq_low = 0;
|
||||
@ -3015,7 +3013,7 @@ void smbd_smb2_first_negprot(struct smbXsrv_connection *xconn,
|
||||
DEBUG(10,("smbd_smb2_first_negprot: packet length %u\n",
|
||||
(unsigned int)size));
|
||||
|
||||
status = smbd_initialize_smb2(sconn);
|
||||
status = smbd_initialize_smb2(xconn);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
smbd_server_connection_terminate(sconn, nt_errstr(status));
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user