1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-04 08:22:08 +03:00

Fix a warning about a set but unused variable by actually using it

Signed-off-by: Matthieu Patou <mat@matws.net>

Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Matthieu Patou
2013-05-17 05:22:33 -07:00
committed by Andrew Bartlett
parent 972417131d
commit 4cc3d065bc

View File

@ -841,6 +841,11 @@ static int entryuuid_sequence_number(struct ldb_module *module, struct ldb_reque
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);