mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
aea0a724d8
We used to talloc_steal c (the command packet) and make it a child of the "event script state context". If we failed to create a eventscript child context for some reason, this would have talloc freed state, but at the same time it would also implicitely have freed c. Once ctdb_control_end_recovery() returns the error back to the caller, the caller would dereference both c, and also outdata which is a child of c and we would either read garbage data or segv. Change the ordering so we only talloc_steal c as a child of state IFF we have successfully created a child context for the script. BZ61068 (This used to be ctdb commit 259054c3632e42bbaa614ee7e888e6e850733d60) |
||
---|---|---|
.. | ||
ctdb_banning.c | ||
ctdb_call.c | ||
ctdb_control.c | ||
ctdb_daemon.c | ||
ctdb_freeze.c | ||
ctdb_keepalive.c | ||
ctdb_lockwait.c | ||
ctdb_logging.c | ||
ctdb_ltdb_server.c | ||
ctdb_monitor.c | ||
ctdb_persistent.c | ||
ctdb_recover.c | ||
ctdb_recoverd.c | ||
ctdb_server.c | ||
ctdb_serverids.c | ||
ctdb_takeover.c | ||
ctdb_traverse.c | ||
ctdb_tunables.c | ||
ctdb_uptime.c | ||
ctdb_vacuum.c | ||
ctdbd.c | ||
eventscript.c |