mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s3: smbd: Change reply_smb20xx() to return NTSTATUS.
Not yet used. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14205 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
parent
a2d81d77c1
commit
836219c479
@ -36,7 +36,7 @@ extern fstring remote_proto;
|
||||
* this is the entry point if SMB2 is selected via
|
||||
* the SMB negprot and the given dialect.
|
||||
*/
|
||||
static void reply_smb20xx(struct smb_request *req, uint16_t dialect)
|
||||
static NTSTATUS reply_smb20xx(struct smb_request *req, uint16_t dialect)
|
||||
{
|
||||
uint8_t *smb2_inpdu;
|
||||
uint8_t *smb2_hdr;
|
||||
@ -48,7 +48,7 @@ static void reply_smb20xx(struct smb_request *req, uint16_t dialect)
|
||||
if (smb2_inpdu == NULL) {
|
||||
DEBUG(0, ("Could not push spnego blob\n"));
|
||||
reply_nterror(req, NT_STATUS_NO_MEMORY);
|
||||
return;
|
||||
return NT_STATUS_NO_MEMORY;
|
||||
}
|
||||
smb2_hdr = smb2_inpdu;
|
||||
smb2_body = smb2_hdr + SMB2_HDR_BODY;
|
||||
@ -64,8 +64,7 @@ static void reply_smb20xx(struct smb_request *req, uint16_t dialect)
|
||||
|
||||
req->outbuf = NULL;
|
||||
|
||||
smbd_smb2_process_negprot(req->xconn, 0, smb2_inpdu, len);
|
||||
return;
|
||||
return smbd_smb2_process_negprot(req->xconn, 0, smb2_inpdu, len);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user