summaryrefslogtreecommitdiff
path: root/source3/smbd/ipc.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-08-05 10:04:11 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:29:19 -0500
commitd57a88a9948017bc9a1b5a12307e8e974425e39b (patch)
treeb9a1ce7f4a118072908ce071d03a811485beeae9 /source3/smbd/ipc.c
parent97a817dceb2906e9d4d63979f9f7619fb12a03a1 (diff)
downloadsamba-d57a88a9948017bc9a1b5a12307e8e974425e39b.tar.gz
samba-d57a88a9948017bc9a1b5a12307e8e974425e39b.tar.bz2
samba-d57a88a9948017bc9a1b5a12307e8e974425e39b.zip
r24237: Add send_trans_reply_new
(This used to be commit f0598b3ca0ee04e31855c3e54f3198e6fd968737)
Diffstat (limited to 'source3/smbd/ipc.c')
-rw-r--r--source3/smbd/ipc.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/source3/smbd/ipc.c b/source3/smbd/ipc.c
index 9140ea66ac..157aff20c1 100644
--- a/source3/smbd/ipc.c
+++ b/source3/smbd/ipc.c
@@ -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.
****************************************************************************/