1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-01 04:58:35 +03:00

s4:pyldb.c - fix "py_ldb_contains" according to the comment by Jelmer

This commit is contained in:
Matthias Dieter Wallnöfer 2010-11-08 15:24:41 +01:00
parent 528edcc789
commit 422233c563

View File

@ -1442,13 +1442,11 @@ static int py_ldb_contains(PyLdbObject *self, PyObject *obj)
talloc_free(result);
if (count == 1) {
return 1;
} else if (count == 0) {
if (count == 0) {
return 0;
}
return -1;
return 1;
}
static PySequenceMethods py_ldb_seq = {