summaryrefslogtreecommitdiffstats
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
commit8a910d37ccc767eb8ab25ef2af3a136ad874346f (patch)
tree05c1c8f10dc8343a32228c29ce4e8c324ff0330c
parentc7ed550483233851d395edb4b8443b3296b45fb7 (diff)
downloadsamba-8a910d37ccc767eb8ab25ef2af3a136ad874346f.tar.gz
samba-8a910d37ccc767eb8ab25ef2af3a136ad874346f.tar.xz
samba-8a910d37ccc767eb8ab25ef2af3a136ad874346f.zip
r24356: Add send_nt_replies_new wrapper
-rw-r--r--source/smbd/nttrans.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/source/smbd/nttrans.c b/source/smbd/nttrans.c
index 1d130369205..1500c355d19 100644
--- a/source/smbd/nttrans.c
+++ b/source/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 ?
****************************************************************************/