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@gmail.com>
Mon, 15 Jun 2015 02:13:01 +0000 (12:13 +1000)
commitfdb899d7c91606dee41d3284ad66bb9bca2573f9
tree84b28d0f1120ddbbb8b0f5a626a69e8c39fed914
parent097342f5abd2278bd6facf1ed9e2bd12cd0852d4
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>
(Imported from commit a2690bc3f4e28a2ed50ccb47cb404fc8570fde6d)
server/ctdb_lock.c