Remove unused code now we set the correct command codes.
authorJeremy Allison <jra@samba.org>
Mon, 18 Jun 2012 23:36:30 +0000 (16:36 -0700)
committerJeremy Allison <jra@samba.org>
Tue, 19 Jun 2012 17:27:24 +0000 (10:27 -0700)
source3/smbd/nttrans.c
source3/smbd/trans2.c

index 5410fcb219fd984b70714610816adf7cf486a58f..2b426b4d9cfc31bae8113715843e07b4a936bc74 100644 (file)
@@ -142,11 +142,6 @@ static void send_nt_replies(connection_struct *conn,
                             total_sent_thistime + alignment_offset
                             + 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.
                 */
index 3a13cd2b21e07b83ac290c2c88a80ac60aa16a45..682b3c4e4ff4a25e95bef914d020e67357cc693b 100644 (file)
@@ -890,12 +890,6 @@ void send_trans2_replies(connection_struct *conn,
                reply_outbuf(req, 10, total_sent_thistime + alignment_offset
                             + data_alignment_offset);
 
-               /*
-                * We might have SMBtrans2s in req which was transferred to
-                * the outbuf, fix that.
-                */
-               SCVAL(req->outbuf, smb_com, SMBtrans2);
-
                /* Set total params and data to be sent */
                SSVAL(req->outbuf,smb_tprcnt,paramsize);
                SSVAL(req->outbuf,smb_tdrcnt,datasize);