git.samba.org
/
janger
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da63ee7
)
dsdb: Use pyldb_check_type() in PyErr_LDB_DN_OR_RAISE()
author
Andrew Bartlett
<abartlet@samba.org>
Mon, 4 Dec 2023 21:27:54 +0000
(10:27 +1300)
committer
Andrew 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
patch
|
blob
|
history
diff --git
a/source4/dsdb/pydsdb.c
b/source4/dsdb/pydsdb.c
index 594d111f0ba73dd289aa7642096c746c5702bd44..8aa8871825c852b34d7da708c83944c75c450926 100644
(file)
--- 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 (!py
ldb_check_type(py_ldb_dn
, "Dn")) { \
PyErr_SetString(PyExc_TypeError, "ldb Dn object required"); \
return NULL; \
} \