Author: vlendec
Date: 2007-08-05 10:04:11 +0000 (Sun, 05 Aug 2007)
New Revision: 24237

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=24237

Log:
Add send_trans_reply_new
Modified:
   branches/SAMBA_3_2/source/smbd/ipc.c


Changeset:
Modified: branches/SAMBA_3_2/source/smbd/ipc.c
===================================================================
--- branches/SAMBA_3_2/source/smbd/ipc.c        2007-08-05 10:01:58 UTC (rev 
24236)
+++ branches/SAMBA_3_2/source/smbd/ipc.c        2007-08-05 10:04:11 UTC (rev 
24237)
@@ -158,6 +158,24 @@
        }
 }
 
+void send_trans_reply_new(struct smb_request *req,
+                         char *rparam, int rparam_len,
+                         char *rdata, int rdata_len,
+                         BOOL buffer_too_large)
+{
+       char *inbuf, *outbuf;
+       int size, buflength;
+
+       if (!reply_prep_legacy(req, &inbuf, &outbuf, &size, &buflength)) {
+               reply_nterror(req, NT_STATUS_NO_MEMORY);
+               return;
+       }
+
+       send_trans_reply(inbuf, outbuf, rparam, rparam_len,
+                        rdata, rdata_len, buffer_too_large);
+       reply_post_legacy(req, -1);
+}
+
 /****************************************************************************
  Start the first part of an RPC reply which began with an SMBtrans request.
 ****************************************************************************/

Reply via email to