dsdb: Use pyldb_check_type() in PyErr_LDB_DN_OR_RAISE()
authorAndrew Bartlett <abartlet@samba.org>
Mon, 4 Dec 2023 21:27:54 +0000 (10:27 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Sun, 3 Mar 2024 22:33:35 +0000 (22:33 +0000)
This prepares to move this macro into pyldb.h

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
source4/dsdb/pydsdb.c

index 594d111f0ba73dd289aa7642096c746c5702bd44..8aa8871825c852b34d7da708c83944c75c450926 100644 (file)
@@ -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; \
        } \