diff options
Diffstat (limited to 'source4/lib/ldb/pyldb_util.c')
-rw-r--r-- | source4/lib/ldb/pyldb_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/ldb/pyldb_util.c b/source4/lib/ldb/pyldb_util.c index fb06946161..41bcb55bd1 100644 --- a/source4/lib/ldb/pyldb_util.c +++ b/source4/lib/ldb/pyldb_util.c @@ -71,7 +71,7 @@ bool PyObject_AsDn(TALLOC_CTX *mem_ctx, PyObject *object, if (PyLdb_Dn_Type == NULL) return false; - if (PyObject_TypeCheck(object, PyLdb_Dn_Type)) { + if (PyObject_TypeCheck(object, (PyTypeObject *) PyLdb_Dn_Type)) { *dn = PyLdbDn_AsDn(object); return true; } |