From f85cfa91616224226c4748e002a363828433b78b Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 28 May 2008 11:47:39 +1000 Subject: make sure we send a reply packet for bad create options (This used to be commit f9b94f62998aef5f5f3879ac3cfba93016fa521b) --- source4/smb_server/smb/reply.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source4/smb_server') diff --git a/source4/smb_server/smb/reply.c b/source4/smb_server/smb/reply.c index d28f4b6072..d7ed052ba0 100644 --- a/source4/smb_server/smb/reply.c +++ b/source4/smb_server/smb/reply.c @@ -2195,7 +2195,8 @@ void smbsrv_reply_ntcreate_and_X(struct smbsrv_request *req) /* we use a couple of bits of the create options internally */ if (io->ntcreatex.in.create_options & NTCREATEX_OPTIONS_PRIVATE_MASK) { - return NT_STATUS_INVALID_PARAMETER; + smbsrv_send_error(req, NT_STATUS_INVALID_PARAMETER); + return; } /* we need a neater way to handle this alignment */ -- cgit