r15709: - return an error is better than ignoring a non supported request
authorStefan Metzmacher <metze@samba.org>
Fri, 19 May 2006 13:37:43 +0000 (13:37 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:08:07 +0000 (14:08 -0500)
- zero nttrans output fields before calling the backends

metze
(This used to be commit b21d98a87590b00c63ccc47b71518f1714ecb29d)

source4/smb_server/smb/nttrans.c

index 516aa526a10fddd4083ba606e84498df7b0d4bf1..9e3c03206299273b65fa936058fe48a0510e20d8 100644 (file)
@@ -626,9 +626,11 @@ void smbsrv_reply_nttrans(struct smbsrv_request *req)
        if (param_total > param_count ||
            data_total > data_count) {
                DEBUG(0,("REWRITE: not handling partial nttrans requests!\n"));
+               smbsrv_send_error(req, NT_STATUS_FOOBAR);
                return;
        }
 
+       ZERO_STRUCT(trans->out);
        SMBSRV_CALL_NTVFS_BACKEND(nttrans_backend(req, op));
 }