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:
parent
64c4639ce9
commit
07e145316c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user