From: Andrew Bartlett Date: Mon, 4 Dec 2023 21:27:54 +0000 (+1300) Subject: dsdb: Use pyldb_check_type() in PyErr_LDB_DN_OR_RAISE() X-Git-Tag: tdb-1.4.11~1542 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ba8e656dab4c8cfd7fbde71ecfbbb0930a963b5;p=thirdparty%2Fsamba.git dsdb: Use pyldb_check_type() in PyErr_LDB_DN_OR_RAISE() This prepares to move this macro into pyldb.h Signed-off-by: Andrew Bartlett Reviewed-by: Douglas Bagnall --- diff --git a/source4/dsdb/pydsdb.c b/source4/dsdb/pydsdb.c index 594d111f0ba..8aa8871825c 100644 --- a/source4/dsdb/pydsdb.c +++ b/source4/dsdb/pydsdb.c @@ -46,7 +46,7 @@ } #define PyErr_LDB_DN_OR_RAISE(py_ldb_dn, dn) \ - if (!py_check_dcerpc_type(py_ldb_dn, "ldb", "Dn")) { \ + if (!pyldb_check_type(py_ldb_dn, "Dn")) { \ PyErr_SetString(PyExc_TypeError, "ldb Dn object required"); \ return NULL; \ } \