summaryrefslogtreecommitdiff
path: root/source4/lib/ldb
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-11-08 15:24:41 +0100
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-11-08 15:24:41 +0100
commit422233c563232e784e4fa274782fe60900037762 (patch)
tree5304123e5d0a332816864d327ab213f85e50e34d /source4/lib/ldb
parent528edcc789ed4712925e33005fcd5f355ddba1b6 (diff)
downloadsamba-422233c563232e784e4fa274782fe60900037762.tar.gz
samba-422233c563232e784e4fa274782fe60900037762.tar.bz2
samba-422233c563232e784e4fa274782fe60900037762.zip
s4:pyldb.c - fix "py_ldb_contains" according to the comment by Jelmer
Diffstat (limited to 'source4/lib/ldb')
-rw-r--r--source4/lib/ldb/pyldb.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source4/lib/ldb/pyldb.c b/source4/lib/ldb/pyldb.c
index acf8052127..eddc56f777 100644
--- a/source4/lib/ldb/pyldb.c
+++ b/source4/lib/ldb/pyldb.c
@@ -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 = {