1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

zero out the ctdb->freeze_handle when we free it

This prevents heap corruption when a freeze child dies

(This used to be ctdb commit 4edc6d40cb63936146af99030b7819683238abfc)
This commit is contained in:
Andrew Tridgell 2008-07-04 16:05:04 +10:00
parent 64c4639ce9
commit 07e145316c

View File

@ -85,6 +85,9 @@ static void ctdb_freeze_lock_handler(struct event_context *ev, struct fd_event *
if (h->ctdb->freeze_mode == CTDB_FREEZE_FROZEN) {
DEBUG(DEBUG_INFO,("freeze child died - unfreezing\n"));
if (h->ctdb->freeze_handle == h) {
h->ctdb->freeze_handle = NULL;
}
talloc_free(h);
return;
}