From f8fbd9cfe166eeee796b8964c597598e9bca597f Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 4 Jul 2019 13:26:20 +1200 Subject: [PATCH] pyldb: Apply flags specified by ldb.Ldb(flags=...) even if the URL is not set Signed-off-by: Andrew Bartlett Reviewed-by: Douglas Bagnall --- lib/ldb/pyldb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ldb/pyldb.c b/lib/ldb/pyldb.c index 0858dddad40..868e3665128 100644 --- a/lib/ldb/pyldb.c +++ b/lib/ldb/pyldb.c @@ -1181,6 +1181,8 @@ static int py_ldb_init(PyLdbObject *self, PyObject *args, PyObject *kwargs) PyErr_SetLdbError(PyExc_LdbError, ret, ldb); return -1; } + } else { + ldb_set_flags(ldb, flags); } talloc_free(options); -- 2.47.3