Signed-off-by: Matthieu Patou <mat@matws.net>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
seq = talloc_get_type(req->op.extended.data, struct ldb_seqnum_request);
map_private = talloc_get_type(ldb_module_get_private(module), struct map_private);
+ if (!map_private) {
+ ldb_debug_set(ldb, LDB_DEBUG_FATAL,
+ "private data is not of type struct map_private");
+ return LDB_ERR_PROTOCOL_ERROR;
+ }
/* All this to get the DN of the parition, so we can search the right thing */
partition_ctrl = ldb_request_get_control(req, DSDB_CONTROL_CURRENT_PARTITION_OID);