diff options
author | Volker Lendecke <vl@samba.org> | 2008-11-07 20:38:05 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-11-08 10:42:29 +0100 |
commit | 8315677ca3ca9eed62fe6e24bac333b9b5dc763b (patch) | |
tree | 30e4ffbeaf08b1b0290c18c37caf9f993abbd45b /source3/smbd/nttrans.c | |
parent | 7a35506bb87fd784a4a7a5b81c2d2ab5c32b233b (diff) | |
download | samba-8315677ca3ca9eed62fe6e24bac333b9b5dc763b.tar.gz samba-8315677ca3ca9eed62fe6e24bac333b9b5dc763b.tar.bz2 samba-8315677ca3ca9eed62fe6e24bac333b9b5dc763b.zip |
Do not write into inbuf for the transs request
Instead, fix up the outbuf in send_xx_reply. In those routines, we know
what we are returning.
Diffstat (limited to 'source3/smbd/nttrans.c')
-rw-r--r-- | source3/smbd/nttrans.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c index c7a8bf7650..1a13d962f0 100644 --- a/source3/smbd/nttrans.c +++ b/source3/smbd/nttrans.c @@ -120,6 +120,11 @@ void send_nt_replies(connection_struct *conn, + data_alignment_offset); /* + * We might have had SMBnttranss in req->inbuf, fix that. + */ + SCVAL(req->outbuf, smb_com, SMBnttrans); + + /* * Set total params and data to be sent. */ @@ -2829,12 +2834,6 @@ void reply_nttranss(struct smb_request *req) return; } - /* - * construct_reply_common will copy smb_com from inbuf to - * outbuf. SMBnttranss is wrong here. - */ - SCVAL(req->inbuf,smb_com,SMBnttrans); - handle_nttrans(conn, state, req); DLIST_REMOVE(conn->pending_trans, state); |