1
0
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:
Andrew Bartlett 2016-03-08 11:16:27 +13:00
parent b96b1e88f7
commit 623bf4230c

View File

@ -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)