From: Stefan Metzmacher Date: Thu, 29 Nov 2018 15:47:15 +0000 (+0100) Subject: s4:pyrpc: make use of pytalloc_get_type() in py_dcerpc_syntax_init_helper() X-Git-Tag: talloc-2.1.15~44 X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=ae467704f3fe6794f1f4e31b1d5c4fd3f1a14053;p=samba.git s4:pyrpc: make use of pytalloc_get_type() in py_dcerpc_syntax_init_helper() BUG: https://bugzilla.samba.org/show_bug.cgi?id=7113 BUG: https://bugzilla.samba.org/show_bug.cgi?id=11892 Signed-off-by: Stefan Metzmacher Reviewed-by: Jeremy Allison --- diff --git a/source4/librpc/rpc/pyrpc_util.c b/source4/librpc/rpc/pyrpc_util.c index 21d94308cb9..cc67dfcdc3f 100644 --- a/source4/librpc/rpc/pyrpc_util.c +++ b/source4/librpc/rpc/pyrpc_util.c @@ -334,7 +334,7 @@ PyObject *py_dcerpc_syntax_init_helper(PyTypeObject *type, PyObject *args, PyObj return NULL; } - obj = (struct ndr_syntax_id *)pytalloc_get_ptr(ret); + obj = pytalloc_get_type(ret, struct ndr_syntax_id); *obj = *syntax; return ret;