summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/ldb/pyldb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ldb/pyldb.c b/lib/ldb/pyldb.c
index 72680c1710..d456acbe4d 100644
--- a/lib/ldb/pyldb.c
+++ b/lib/ldb/pyldb.c
@@ -2290,8 +2290,8 @@ static int py_ldb_msg_element_cmp(PyLdbMessageElementObject *self, PyLdbMessageE
static PyObject *py_ldb_msg_element_iter(PyLdbMessageElementObject *self)
{
- struct ldb_message_element *el = ldb_msg_element_to_set(NULL,
- pyldb_MessageElement_AsMessageElement(self));
+ PyObject *el = ldb_msg_element_to_set(NULL,
+ pyldb_MessageElement_AsMessageElement(self));
return PyObject_GetIter(el);
}