summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-08-13 08:33:01 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:29:35 -0500
commit2d8e4456cd8f0bff60e164c685e69ca9214bacb2 (patch)
treeb04317c22ee629241d139e8a6faabd9d5b660d29 /source3/smbd
parent5af3e2d613f55ab7289b85d22a0e9fa115de4549 (diff)
downloadsamba-2d8e4456cd8f0bff60e164c685e69ca9214bacb2.tar.gz
samba-2d8e4456cd8f0bff60e164c685e69ca9214bacb2.tar.bz2
samba-2d8e4456cd8f0bff60e164c685e69ca9214bacb2.zip
r24356: Add send_nt_replies_new wrapper
(This used to be commit 8a910d37ccc767eb8ab25ef2af3a136ad874346f)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/nttrans.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c
index 1d13036920..1500c355d1 100644
--- a/source3/smbd/nttrans.c
+++ b/source3/smbd/nttrans.c
@@ -262,6 +262,24 @@ int send_nt_replies(const char *inbuf,
return 0;
}
+void send_nt_replies_new(struct smb_request *req, NTSTATUS nt_error,
+ char *params, int paramsize,
+ char *pdata, int datasize)
+{
+ char *inbuf, *outbuf;
+ int length, bufsize;
+
+ if (!reply_prep_legacy(req, &inbuf, &outbuf, &length, &bufsize)) {
+ reply_nterror(req, NT_STATUS_NO_MEMORY);
+ return;
+ }
+
+ reply_post_legacy(
+ req,
+ send_nt_replies(inbuf, outbuf, bufsize, nt_error,
+ params, paramsize, pdata, datasize));
+}
+
/****************************************************************************
Is it an NTFS stream name ?
****************************************************************************/