mirror of
https://github.com/samba-team/samba.git
synced 2025-03-11 16:58:40 +03:00
pyrpc: Add warning about abuse of py_return_ndr_struct()
Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
This commit is contained in:
parent
b96b1e88f7
commit
623bf4230c
@ -349,6 +349,9 @@ void PyErr_SetDCERPCStatus(struct dcerpc_pipe *p, NTSTATUS status)
|
||||
|
||||
r_ctx is the context that is a parent of r. It will be referenced by
|
||||
the resulting python object
|
||||
|
||||
This MUST only be used by objects that are based on pytalloc_Object
|
||||
otherwise it will cause crazy segfaults.
|
||||
*/
|
||||
PyObject *py_return_ndr_struct(const char *module_name, const char *type_name,
|
||||
TALLOC_CTX *r_ctx, void *r)
|
||||
|
Loading…
x
Reference in New Issue
Block a user