diff options
author | Simo Sorce <idra@samba.org> | 2010-07-13 15:43:44 -0400 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2010-07-16 01:51:16 +0200 |
commit | 31b59bbf99835279a0a78858aca2f327150eb5e2 (patch) | |
tree | 7524b7fcca9218767737c10eba864b9579f4a43a /pidl/lib/Parse | |
parent | 8246214e7ef5374acc0a1f97f4f1203374fba7f8 (diff) | |
download | samba-31b59bbf99835279a0a78858aca2f327150eb5e2.tar.gz samba-31b59bbf99835279a0a78858aca2f327150eb5e2.tar.bz2 samba-31b59bbf99835279a0a78858aca2f327150eb5e2.zip |
s3-dcerpc: Convert rdata from prs_struct to a simple DATA_BLOB
Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'pidl/lib/Parse')
-rw-r--r-- | pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm b/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm index a25d12bfea..319bd79076 100644 --- a/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm +++ b/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm @@ -211,11 +211,8 @@ sub ParseFunction($$) pidl "\treturn false;"; pidl "}"; pidl ""; - pidl "blob = ndr_push_blob(push);"; - pidl "if (!prs_copy_data_in(&p->out_data.rdata, (const char *)blob.data, (uint32_t)blob.length)) {"; - pidl "\ttalloc_free(r);"; - pidl "\treturn false;"; - pidl "}"; + pidl "p->out_data.rdata = ndr_push_blob(push);"; + pidl "talloc_steal(p->mem_ctx, p->out_data.rdata.data);"; pidl ""; pidl "talloc_free(r);"; pidl ""; |