From 5a830d062676eb4cc1a20773b461b5a1073d1d33 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 26 Sep 2004 11:25:33 +0000 Subject: r2658: fixed a couple of error codes found with RAW-CONTEXT (This used to be commit 18632ec56524f294655d881406c10beb659ddee1) --- source4/smb_server/smb_server.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/smb_server') diff --git a/source4/smb_server/smb_server.c b/source4/smb_server/smb_server.c index c3c5a6c456..883be01b41 100644 --- a/source4/smb_server/smb_server.c +++ b/source4/smb_server/smb_server.c @@ -473,14 +473,14 @@ static void switch_message(int type, struct smbsrv_request *req) /* does this protocol need a valid tree connection? */ if ((flags & AS_USER) && !req->tcon) { - req_reply_error(req, NT_STATUS_NETWORK_NAME_DELETED); + req_reply_error(req, NT_STATUS_INVALID_HANDLE); return; } /* see if the vuid is valid */ if ((flags & AS_USER) && !req->session) { if (!(flags & AS_GUEST)) { - req_reply_error(req, NT_STATUS_DOS(ERRSRV, ERRbaduid)); + req_reply_error(req, NT_STATUS_INVALID_HANDLE); return; } } -- cgit