]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: Change reply_smb20xx() to return NTSTATUS.
authorJeremy Allison <jra@samba.org>
Tue, 26 Nov 2019 20:21:06 +0000 (12:21 -0800)
committerKarolin Seeger <kseeger@samba.org>
Mon, 16 Dec 2019 08:22:36 +0000 (08:22 +0000)
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>
(cherry picked from commit 836219c479b047403d2b0839a6b92ad637dbaea0)

source3/smbd/smb2_negprot.c

index 2b725f30f752d5dc84457928779c53d1b9a48416..fc0d884ad1da34afe4891b1b5ca85d7456df7f03 100644 (file)
@@ -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);
 }
 
 /*