mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
dns: Use pyldb_check_type() in PyErr_LDB_DN_OR_RAISE()
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>
This commit is contained in:
parent
0839999c94
commit
6c3ca9e496
@ -40,7 +40,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; \
|
||||
} \
|
||||
|
Loading…
x
Reference in New Issue
Block a user