From: Jeremy Allison Date: Tue, 26 Nov 2019 20:21:06 +0000 (-0800) Subject: s3: smbd: Change reply_smb20xx() to return NTSTATUS. X-Git-Tag: samba-4.10.13~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2feddd181dd5eea71580c2dcbb99c4c174d183d1;p=thirdparty%2Fsamba.git 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 Reviewed-by: Volker Lendecke (cherry picked from commit 836219c479b047403d2b0839a6b92ad637dbaea0) --- diff --git a/source3/smbd/smb2_negprot.c b/source3/smbd/smb2_negprot.c index 2b725f30f75..fc0d884ad1d 100644 --- a/source3/smbd/smb2_negprot.c +++ b/source3/smbd/smb2_negprot.c @@ -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); } /*