mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
r2344: Return PyDict_New() in stub functions instead of Py_None to avoid
crashing in garbage collector (hmm - all that was required was probably
a Py_INCREF(Py_None) though).
(This used to be commit a3eac318a6
)
This commit is contained in:
parent
498ea8485f
commit
2cfd0b654c
@ -134,7 +134,7 @@ struct security_descriptor *security_descriptor_ptr_from_python(TALLOC_CTX *mem_
|
||||
|
||||
PyObject *security_descriptor_to_python(struct security_descriptor *obj)
|
||||
{
|
||||
return Py_None;
|
||||
return PyDict_New();
|
||||
}
|
||||
|
||||
struct dom_sid2 *dom_sid2_ptr_from_python(TALLOC_CTX *mem_ctx, PyObject *obj)
|
||||
@ -144,7 +144,7 @@ struct dom_sid2 *dom_sid2_ptr_from_python(TALLOC_CTX *mem_ctx, PyObject *obj)
|
||||
|
||||
PyObject *dom_sid2_to_python(struct dom_sid2 *obj)
|
||||
{
|
||||
return Py_None;
|
||||
return PyDict_New();
|
||||
}
|
||||
|
||||
char *string_from_python(PyObject *obj)
|
||||
|
Loading…
Reference in New Issue
Block a user