From: Andrew Bartlett Date: Thu, 4 Jul 2019 01:26:20 +0000 (+1200) Subject: pyldb: Apply flags specified by ldb.Ldb(flags=...) even if the URL is not set X-Git-Tag: ldb-2.0.5~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f8fbd9cfe166eeee796b8964c597598e9bca597f;p=thirdparty%2Fsamba.git pyldb: Apply flags specified by ldb.Ldb(flags=...) even if the URL is not set Signed-off-by: Andrew Bartlett Reviewed-by: Douglas Bagnall --- 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);