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:
parent
528edcc789
commit
422233c563
@ -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 = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user