summaryrefslogtreecommitdiff
path: root/source3/lib/dbwrap/dbwrap_ctdb.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/dbwrap/dbwrap_ctdb.c')
-rw-r--r--source3/lib/dbwrap/dbwrap_ctdb.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/lib/dbwrap/dbwrap_ctdb.c b/source3/lib/dbwrap/dbwrap_ctdb.c
index e55689cad5..f90e7b80f1 100644
--- a/source3/lib/dbwrap/dbwrap_ctdb.c
+++ b/source3/lib/dbwrap/dbwrap_ctdb.c
@@ -986,11 +986,13 @@ static bool db_ctdb_can_use_local_hdr(const struct ctdb_ltdb_header *hdr,
static bool db_ctdb_can_use_local_copy(TDB_DATA ctdb_data, bool read_only)
{
- if (ctdb_data.dptr == NULL)
+ if (ctdb_data.dptr == NULL) {
return false;
+ }
- if (ctdb_data.dsize < sizeof(struct ctdb_ltdb_header))
+ if (ctdb_data.dsize < sizeof(struct ctdb_ltdb_header)) {
return false;
+ }
return db_ctdb_can_use_local_hdr(
(struct ctdb_ltdb_header *)ctdb_data.dptr, read_only);