diff options
author | Tim Potter <tpot@samba.org> | 2004-09-15 12:24:53 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:58:45 -0500 |
commit | 2cfd0b654c693ef90b54cf309f816ed62c94b545 (patch) | |
tree | f7a247db83f3d77c4d10db234b722684ec7cbcdc /source4/scripting/swig | |
parent | 498ea8485f8763a1c4e39bf49cd0b68004b2f8c3 (diff) | |
download | samba-2cfd0b654c693ef90b54cf309f816ed62c94b545.tar.gz samba-2cfd0b654c693ef90b54cf309f816ed62c94b545.tar.bz2 samba-2cfd0b654c693ef90b54cf309f816ed62c94b545.zip |
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 a3eac318a624d214084741839faa2ad485902f6f)
Diffstat (limited to 'source4/scripting/swig')
-rw-r--r-- | source4/scripting/swig/dcerpc.i | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/scripting/swig/dcerpc.i b/source4/scripting/swig/dcerpc.i index 7679b773f4..75b078ad16 100644 --- a/source4/scripting/swig/dcerpc.i +++ b/source4/scripting/swig/dcerpc.i @@ -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) |