From 422233c563232e784e4fa274782fe60900037762 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Mon, 8 Nov 2010 15:24:41 +0100 Subject: s4:pyldb.c - fix "py_ldb_contains" according to the comment by Jelmer --- source4/lib/ldb/pyldb.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'source4/lib') 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 = { -- cgit