diff options
author | Stefan Metzmacher <metze@samba.org> | 2018-11-29 16:47:15 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2019-01-12 03:13:41 +0100 |
commit | ae467704f3fe6794f1f4e31b1d5c4fd3f1a14053 (patch) | |
tree | d1065358c4b742ede249e9c9bfb2cc628c025de9 /source4 | |
parent | 4bb3a66ae13ad90101034451c2200fc669fb3dec (diff) | |
download | samba-ae467704f3fe6794f1f4e31b1d5c4fd3f1a14053.tar.gz |
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 <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source4')
-rw-r--r-- | source4/librpc/rpc/pyrpc_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |