diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-11-08 15:24:41 +0100 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-11-08 15:24:41 +0100 |
commit | 422233c563232e784e4fa274782fe60900037762 (patch) | |
tree | 5304123e5d0a332816864d327ab213f85e50e34d /source4/lib/ldb | |
parent | 528edcc789ed4712925e33005fcd5f355ddba1b6 (diff) | |
download | samba-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.c | 6 |
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 = { |