mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
s3:smb2_server: pass smbXsrv_connection to smbd_smb2_first_negprot()
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
bfc702b9a0
commit
3a622c785c
@ -224,7 +224,7 @@ bool smbd_is_smb2_header(const uint8_t *inbuf, size_t size);
|
||||
|
||||
void reply_smb2002(struct smb_request *req, uint16_t choice);
|
||||
void reply_smb20ff(struct smb_request *req, uint16_t choice);
|
||||
void smbd_smb2_first_negprot(struct smbd_server_connection *sconn,
|
||||
void smbd_smb2_first_negprot(struct smbXsrv_connection *xconn,
|
||||
uint8_t *inbuf, size_t size);
|
||||
|
||||
DATA_BLOB smbd_smb2_generate_outbody(struct smbd_smb2_request *req, size_t size);
|
||||
|
@ -1878,7 +1878,7 @@ static void process_smb(struct smbXsrv_connection *xconn,
|
||||
/* At this point we're not really using smb2,
|
||||
* we make the decision here.. */
|
||||
if (smbd_is_smb2_header(inbuf, nread)) {
|
||||
smbd_smb2_first_negprot(sconn, inbuf, nread);
|
||||
smbd_smb2_first_negprot(xconn, inbuf, nread);
|
||||
return;
|
||||
} else if (nread >= smb_size && valid_smb_header(sconn, inbuf)
|
||||
&& CVAL(inbuf, smb_com) != 0x72) {
|
||||
|
@ -59,7 +59,7 @@ static void reply_smb20xx(struct smb_request *req, uint16_t dialect)
|
||||
|
||||
req->outbuf = NULL;
|
||||
|
||||
smbd_smb2_first_negprot(req->sconn, smb2_inbuf, len);
|
||||
smbd_smb2_first_negprot(req->xconn, smb2_inbuf, len);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -3005,9 +3005,10 @@ static NTSTATUS smbd_smb2_request_next_incoming(struct smbd_server_connection *s
|
||||
return NT_STATUS_OK;
|
||||
}
|
||||
|
||||
void smbd_smb2_first_negprot(struct smbd_server_connection *sconn,
|
||||
void smbd_smb2_first_negprot(struct smbXsrv_connection *xconn,
|
||||
uint8_t *inbuf, size_t size)
|
||||
{
|
||||
struct smbd_server_connection *sconn = xconn->sconn;
|
||||
NTSTATUS status;
|
||||
struct smbd_smb2_request *req = NULL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user