make sure we send a reply packet for bad create options
authorAndrew Tridgell <tridge@samba.org>
Wed, 28 May 2008 01:47:39 +0000 (11:47 +1000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 28 May 2008 01:47:39 +0000 (11:47 +1000)
source/smb_server/smb/reply.c

index d28f4b6072e5abee0a37aa1b62a78a3195779df8..d7ed052ba0e48661ee85b6befbc21bbfcdd81c64 100644 (file)
@@ -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 */