1
0
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:
Martin Schwenke 2016-06-01 15:56:42 +10:00 committed by Martin Schwenke
parent dbd4e67aee
commit 630f169653

View File

@ -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);