mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
ctdb-recoverd: Fix buggy function return on memory allocation failure
Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
parent
dbd4e67aee
commit
630f169653
@ -1592,7 +1592,7 @@ static bool ctdb_recovery_lock(struct ctdb_context *ctdb)
|
||||
|
||||
h = ctdb_cluster_mutex(ctdb, ctdb->recovery_lock, 0);
|
||||
if (h == NULL) {
|
||||
return -1;
|
||||
return false;
|
||||
}
|
||||
|
||||
ctdb_cluster_mutex_set_handler(h, hold_reclock_handler, &s);
|
||||
|
Loading…
x
Reference in New Issue
Block a user