Skip to content

Commit

Permalink
Sentinel: fixed a crash on script execution.
Browse files Browse the repository at this point in the history
The call to sentinelScheduleScriptExecution() lacked the final NULL
argument to signal the end of arguments. This resulted into a crash.
  • Loading branch information
antirez committed Aug 24, 2012
1 parent 724371d commit 0147775
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sentinel.c
Expand Up @@ -789,7 +789,7 @@ void sentinelCallClientReconfScript(sentinelRedisInstance *master, int role, cha
sentinelScheduleScriptExecution(master->client_reconfig_script,
master->name,
(role == SENTINEL_LEADER) ? "leader" : "observer",
state, from->ip, fromport, to->ip, toport);
state, from->ip, fromport, to->ip, toport, NULL);
}

/* ========================== sentinelRedisInstance ========================= */
Expand Down

0 comments on commit 0147775

Please sign in to comment.