ctdb-locking: make process_callbacks() more robust
authorStefan Metzmacher <metze@samba.org>
Tue, 2 Jun 2015 10:39:17 +0000 (12:39 +0200)
committerAmitay Isaacs <amitay@samba.org>
Fri, 12 Jun 2015 10:40:54 +0000 (12:40 +0200)
commita2690bc3f4e28a2ed50ccb47cb404fc8570fde6d
tree548174fcc71373f63758a0489f9779249bf89f9c
parent89849c4d31c0bb0c47864e11abc89efe7d812d87
ctdb-locking: make process_callbacks() more robust

We should not dereference lock_ctx after invoking the callback
in the auto_mark == false case. The callback could have destroyed it.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11293

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/server/ctdb_lock.c