diff options
author | Andrew Tridgell <tridge@samba.org> | 2008-05-28 11:47:39 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2008-05-28 11:47:39 +1000 |
commit | f85cfa91616224226c4748e002a363828433b78b (patch) | |
tree | 01929303bbba3e96ea14eadcf1fce6e542cecbc4 /source4/smb_server | |
parent | 6cdfbd838094749557ee752fee23579ce71a0d53 (diff) | |
download | samba-f85cfa91616224226c4748e002a363828433b78b.tar.gz samba-f85cfa91616224226c4748e002a363828433b78b.tar.bz2 samba-f85cfa91616224226c4748e002a363828433b78b.zip |
make sure we send a reply packet for bad create options
(This used to be commit f9b94f62998aef5f5f3879ac3cfba93016fa521b)
Diffstat (limited to 'source4/smb_server')
-rw-r--r-- | source4/smb_server/smb/reply.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 */ |