summaryrefslogtreecommitdiff
path: root/source4/auth
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-12-01 00:02:53 +0100
committerJelmer Vernooij <jelmer@samba.org>2010-12-01 01:48:25 +0100
commitfce73d7eff516a981795efa902339cd5bfb19810 (patch)
treec46f43351aa79aca9646874000c0bd60a5b468ee /source4/auth
parent00251d9e5627f041b9585dbe6c380f88f796e3b9 (diff)
downloadsamba-fce73d7eff516a981795efa902339cd5bfb19810.tar.gz
samba-fce73d7eff516a981795efa902339cd5bfb19810.tar.bz2
samba-fce73d7eff516a981795efa902339cd5bfb19810.zip
pygensec: Use talloc.Object.
Diffstat (limited to 'source4/auth')
-rw-r--r--source4/auth/gensec/pygensec.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/auth/gensec/pygensec.c b/source4/auth/gensec/pygensec.c
index f8825b87d9..229a21bb53 100644
--- a/source4/auth/gensec/pygensec.c
+++ b/source4/auth/gensec/pygensec.c
@@ -203,13 +203,16 @@ static PyTypeObject Py_Security = {
.tp_flags = Py_TPFLAGS_DEFAULT,
.tp_methods = py_gensec_security_methods,
.tp_basicsize = sizeof(py_talloc_Object),
- .tp_dealloc = py_talloc_dealloc,
};
void initgensec(void)
{
PyObject *m;
+ Py_Security.tp_base = PyTalloc_GetObjectType();
+ if (Py_Security.tp_base != NULL)
+ return;
+
if (PyType_Ready(&Py_Security) < 0)
return;