git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4bb3a66
)
s4:pyrpc: make use of pytalloc_get_type() in py_dcerpc_syntax_init_helper()
author
Stefan Metzmacher
<metze@samba.org>
Thu, 29 Nov 2018 15:47:15 +0000
(16:47 +0100)
committer
Jeremy Allison
<jra@samba.org>
Sat, 12 Jan 2019 02:13:41 +0000
(
03:13
+0100)
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>
source4/librpc/rpc/pyrpc_util.c
patch
|
blob
|
history
diff --git
a/source4/librpc/rpc/pyrpc_util.c
b/source4/librpc/rpc/pyrpc_util.c
index 21d94308cb91e736bf3b18feabd9e4aab2d2d643..cc67dfcdc3f6a5e925675ee2f247994084b9c4d3 100644
(file)
--- 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;