Skip to content

Commit

Permalink
Fix: crmd: Additional NULL checks for transition_graph
Browse files Browse the repository at this point in the history
  • Loading branch information
beekhof committed Nov 13, 2013
1 parent 9227e89 commit 20f169d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crmd/tengine.c
Expand Up @@ -183,15 +183,15 @@ do_te_invoke(long long action,
crm_debug("Cancelling the transition: %s",
transition_graph->complete?"inactive":"active");
abort_transition(INFINITY, tg_restart, "Peer Cancelled", NULL);
if(transition_graph->complete == FALSE) {
if(transition_graph && transition_graph->complete == FALSE) {
crmd_fsa_stall(NULL);
}

} else if(action & A_TE_HALT) {
crm_debug("Halting the transition: %s",
transition_graph->complete?"inactive":"active");
abort_transition(INFINITY, tg_stop, "Peer Halt", NULL);
if(transition_graph->complete == FALSE) {
if(transition_graph && transition_graph->complete == FALSE) {
crmd_fsa_stall(NULL);
}

Expand All @@ -209,7 +209,7 @@ do_te_invoke(long long action,
return;
}

if(transition_graph->complete == FALSE) {
if(transition_graph && transition_graph->complete == FALSE) {
crm_info("Another transition is already active");
abort_transition(INFINITY, tg_restart, "Transition Active", NULL);
return;
Expand Down

0 comments on commit 20f169d

Please sign in to comment.