summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-05-19 13:37:43 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:08:07 -0500
commit0fc977c54d40ff4d7735b327c53ef65bd3bea86d (patch)
tree55653268ff8d29f81c30821014d23a9988a7ebe0 /source4
parenta3cc3c9c1fe908ee927d30314e9a2595e30cd615 (diff)
downloadsamba-0fc977c54d40ff4d7735b327c53ef65bd3bea86d.tar.gz
samba-0fc977c54d40ff4d7735b327c53ef65bd3bea86d.tar.bz2
samba-0fc977c54d40ff4d7735b327c53ef65bd3bea86d.zip
r15709: - return an error is better than ignoring a non supported request
- zero nttrans output fields before calling the backends metze (This used to be commit b21d98a87590b00c63ccc47b71518f1714ecb29d)
Diffstat (limited to 'source4')
-rw-r--r--source4/smb_server/smb/nttrans.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/smb_server/smb/nttrans.c b/source4/smb_server/smb/nttrans.c
index 516aa526a1..9e3c032062 100644
--- a/source4/smb_server/smb/nttrans.c
+++ b/source4/smb_server/smb/nttrans.c
@@ -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));
}