From 9a274b4e760c974f438616dbceb44420ea3ef19d Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 20 Jan 1999 19:13:27 +0000 Subject: Turns out NT can send an NTcancel request with an invalid uid. This can cause smbd to crash. As we're only removing entries from a queue then remove the AS_USER flag for reply_ntcancel. Jeremy. --- source/smbd/process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/smbd/process.c b/source/smbd/process.c index f4ff2e86dab..d857224b21c 100644 --- a/source/smbd/process.c +++ b/source/smbd/process.c @@ -346,7 +346,7 @@ struct smb_message_struct {SMBntcreateX, "SMBntcreateX", reply_ntcreate_and_X, AS_USER | CAN_IPC | QUEUE_IN_OPLOCK }, {SMBnttrans, "SMBnttrans", reply_nttrans, AS_USER | CAN_IPC }, {SMBnttranss, "SMBnttranss", reply_nttranss, AS_USER | CAN_IPC }, - {SMBntcancel, "SMBntcancel", reply_ntcancel, AS_USER }, + {SMBntcancel, "SMBntcancel", reply_ntcancel, 0 }, /* messaging routines */ {SMBsends,"SMBsends",reply_sends,AS_GUEST}, -- cgit