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:
0839999
)
dns: Use pyldb_check_type() in PyErr_LDB_DN_OR_RAISE()
author
Andrew Bartlett
<abartlet@samba.org>
Mon, 4 Dec 2023 21:31:48 +0000
(10:31 +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/dns_server/pydns.c
patch
|
blob
|
history
diff --git
a/source4/dns_server/pydns.c
b/source4/dns_server/pydns.c
index 96151df97718785ed58f9fa7a3c4c50e8c19dd26..71e7deb0075987d6ef7cde4176750a2c44d0010e 100644
(file)
--- a/
source4/dns_server/pydns.c
+++ b/
source4/dns_server/pydns.c
@@
-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 (!py
ldb_check_type(py_ldb_dn
, "Dn")) { \
PyErr_SetString(PyExc_TypeError, "ldb Dn object required"); \
return NULL; \
} \