r24237: Add send_trans_reply_new
authorVolker Lendecke <vlendec@samba.org>
Sun, 5 Aug 2007 10:04:11 +0000 (10:04 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:29:19 +0000 (12:29 -0500)
(This used to be commit f0598b3ca0ee04e31855c3e54f3198e6fd968737)

source3/smbd/ipc.c

index 9140ea66ac39e16abbf7567d568d927f57e9779b..157aff20c19d6f447eae26708facdc13bee314b7 100644 (file)
@@ -158,6 +158,24 @@ void send_trans_reply(const char *inbuf,
        }
 }
 
+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.
 ****************************************************************************/