dsdb: Use pyldb_Ldb_AsLdbContext() in PyErr_LDB_OR_RAISE()
authorAndrew Bartlett <abartlet@samba.org>
Mon, 4 Dec 2023 21:08:23 +0000 (10:08 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Sun, 3 Mar 2024 22:33:35 +0000 (22:33 +0000)
commitda63ee78b3427865b51631a2ffb690b356e0f521
tree21888a1fefaab39f09f7bb14ea8af507fe34de10
parentdbdecac5f89c672456940caa4eb526a30837ed6a
dsdb: Use pyldb_Ldb_AsLdbContext() in PyErr_LDB_OR_RAISE()

This macro already checks the type, so we do not need to call
py_check_dcerpc_type() and 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