From 2d8e4456cd8f0bff60e164c685e69ca9214bacb2 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 13 Aug 2007 08:33:01 +0000 Subject: r24356: Add send_nt_replies_new wrapper (This used to be commit 8a910d37ccc767eb8ab25ef2af3a136ad874346f) --- source3/smbd/nttrans.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'source3/smbd/nttrans.c') 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 ? ****************************************************************************/ -- cgit