1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/ctdb/server
Ronnie Sahlberg aea0a724d8 In ctdb_control_end_recovery,
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)
2010-02-23 12:50:32 +11:00
..
ctdb_banning.c eventscript: expost ctdb_ban_self() 2009-12-07 23:18:40 +10:30
ctdb_call.c Reducing the log level for a debug message 2010-02-16 11:02:01 +11:00
ctdb_control.c controls: add stups for GET_PUBLIC_IP_INFO, GET_IFACES and SET_IFACE_LINK_STATE 2010-01-20 11:10:59 +01:00
ctdb_daemon.c ctdb: when we fill the client packet queue we need to drop the client 2010-02-04 15:37:59 +11:00
ctdb_freeze.c server: Use tdb_check to verify persistent tdbs on startup 2009-12-16 08:06:10 +01:00
ctdb_keepalive.c add a new node state : DELETED. 2009-06-01 14:18:34 +10:00
ctdb_lockwait.c Drop the debug level for logging fd creation to DEBUG_DEBUG 2010-02-04 06:37:41 +11:00
ctdb_logging.c Drop the debug level for logging fd creation to DEBUG_DEBUG 2010-02-04 06:37:41 +11:00
ctdb_ltdb_server.c fix a conflict in the merge from rusty 2009-12-17 08:18:04 +11:00
ctdb_monitor.c server: add "init" event 2010-01-20 09:44:36 +01:00
ctdb_persistent.c Drop the debug level for logging fd creation to DEBUG_DEBUG 2010-02-04 06:37:41 +11:00
ctdb_recover.c In ctdb_control_end_recovery, 2010-02-23 12:50:32 +11:00
ctdb_recoverd.c Drop the debug level for logging fd creation to DEBUG_DEBUG 2010-02-04 06:37:41 +11:00
ctdb_server.c server: add db_directory_state to ctdb_context 2009-12-16 08:03:55 +01:00
ctdb_serverids.c merge from ronnie 2008-02-04 20:07:15 +11:00
ctdb_takeover.c lower the loglevel for a debug message for redundant releases of public ips 2010-02-16 11:01:09 +11:00
ctdb_traverse.c Drop the debug level for logging fd creation to DEBUG_DEBUG 2010-02-04 06:37:41 +11:00
ctdb_tunables.c We only queued up to 1000 packets per queue before we start dropping 2010-02-04 09:54:06 +11:00
ctdb_uptime.c track both when we last started and ended a recovery. 2008-07-02 13:55:59 +10:00
ctdb_vacuum.c Drop the debug level for logging fd creation to DEBUG_DEBUG 2010-02-04 06:37:41 +11:00
ctdbd.c server: add a ctdb_set_single_public_ip() helper function 2010-01-20 11:10:57 +01:00
eventscript.c Ignore any scripts that timesout for most events, except startup. 2010-02-16 11:21:27 +11:00