diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-05-19 13:44:39 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:08:07 -0500 |
commit | 2adbcc3965339d0fdd20f8dc6ddbe13a620f9935 (patch) | |
tree | 08f884a5fafb955d3ceb180d7b69bb08d25e4744 /source4 | |
parent | 0fc977c54d40ff4d7735b327c53ef65bd3bea86d (diff) | |
download | samba-2adbcc3965339d0fdd20f8dc6ddbe13a620f9935.tar.gz samba-2adbcc3965339d0fdd20f8dc6ddbe13a620f9935.tar.bz2 samba-2adbcc3965339d0fdd20f8dc6ddbe13a620f9935.zip |
r15710: - we no longer need to set the nttrans out fields to zero
in the backends
- some whitespace cleanups
metze
(This used to be commit 6a0c24c73e1060824576d60459d4636848f2173a)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/smb_server/smb/nttrans.c | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/source4/smb_server/smb/nttrans.c b/source4/smb_server/smb/nttrans.c index 9e3c032062..b9da899fa9 100644 --- a/source4/smb_server/smb/nttrans.c +++ b/source4/smb_server/smb/nttrans.c @@ -275,11 +275,6 @@ static NTSTATUS nttrans_set_sec_desc(struct smbsrv_request *req, (ndr_pull_flags_fn_t)ndr_pull_security_descriptor); NT_STATUS_NOT_OK_RETURN(status); - trans->out.setup_count = 0; - trans->out.setup = NULL; - trans->out.params = data_blob(NULL, 0); - trans->out.data = data_blob(NULL, 0); - return ntvfs_setfileinfo(req->ntvfs, io); } @@ -355,7 +350,6 @@ static NTSTATUS nttrans_notify_change_send(struct nttrans_op *op) status = nttrans_setup_reply(op, op->trans, size, 0, 0); NT_STATUS_NOT_OK_RETURN(status); - p = op->trans->out.params.data; /* construct the changes buffer */ @@ -589,17 +583,17 @@ void smbsrv_reply_nttrans(struct smbsrv_request *req) op->op_info = NULL; op->send_fn = NULL; - trans->in.max_setup = CVAL(req->in.vwv, 0); + trans->in.max_setup = CVAL(req->in.vwv, 0); param_total = IVAL(req->in.vwv, 3); data_total = IVAL(req->in.vwv, 7); - trans->in.max_param = IVAL(req->in.vwv, 11); - trans->in.max_data = IVAL(req->in.vwv, 15); + trans->in.max_param = IVAL(req->in.vwv, 11); + trans->in.max_data = IVAL(req->in.vwv, 15); param_count = IVAL(req->in.vwv, 19); param_ofs = IVAL(req->in.vwv, 23); data_count = IVAL(req->in.vwv, 27); data_ofs = IVAL(req->in.vwv, 31); - trans->in.setup_count = CVAL(req->in.vwv, 35); - trans->in.function = SVAL(req->in.vwv, 36); + trans->in.setup_count= CVAL(req->in.vwv, 35); + trans->in.function = SVAL(req->in.vwv, 36); if (req->in.wct != 19 + trans->in.setup_count) { smbsrv_send_error(req, NT_STATUS_DOS(ERRSRV, ERRerror)); |