summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/smb_server/reply.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/source4/smb_server/reply.c b/source4/smb_server/reply.c
index e705181ef2..915919e9d6 100644
--- a/source4/smb_server/reply.c
+++ b/source4/smb_server/reply.c
@@ -2048,14 +2048,13 @@ static void reply_sesssetup_spnego(struct smbsrv_request *req)
/* call the generic handler */
status = sesssetup_backend(req, &sess);
- if (!NT_STATUS_IS_OK(status)) {
- req_reply_error(req, status);
- return;
- }
-
/* construct reply */
req_setup_reply(req, 4, sess.spnego.out.secblob.length);
+ if (!NT_STATUS_IS_OK(status)) {
+ req_setup_error(req, status);
+ }
+
SSVAL(req->out.vwv, VWV(0), SMB_CHAIN_NONE);
SSVAL(req->out.vwv, VWV(1), 0);
SSVAL(req->out.vwv, VWV(2), sess.spnego.out.action);