s3:smbd: SMBtdis should return ERRSRV, ERRinvnid instead of NETWORK_NAME_DELETED
authorStefan Metzmacher <metze@samba.org>
Thu, 3 May 2012 13:53:56 +0000 (15:53 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 16 May 2012 06:10:08 +0000 (08:10 +0200)
Found by the raw.context test.

metze

source3/smbd/reply.c

index b4e764e15c03cff05bed8c237e5ee16612d97aac..91d12bd3e38502b568e27a4733c46ff544707afe 100644 (file)
@@ -5063,7 +5063,7 @@ void reply_tdis(struct smb_request *req)
 
        if (!conn) {
                DEBUG(4,("Invalid connection in tdis\n"));
-               reply_nterror(req, NT_STATUS_NETWORK_NAME_DELETED);
+               reply_force_doserror(req, ERRSRV, ERRinvnid);
                END_PROFILE(SMBtdis);
                return;
        }