Commit fc0a0d4a authored by antirez's avatar antirez
Browse files

Sentinel: fixed a crash on script execution.

The call to sentinelScheduleScriptExecution() lacked the final NULL
argument to signal the end of arguments. This resulted into a crash.
parent ea9bec50
...@@ -789,7 +789,7 @@ void sentinelCallClientReconfScript(sentinelRedisInstance *master, int role, cha ...@@ -789,7 +789,7 @@ void sentinelCallClientReconfScript(sentinelRedisInstance *master, int role, cha
sentinelScheduleScriptExecution(master->client_reconfig_script, sentinelScheduleScriptExecution(master->client_reconfig_script,
master->name, master->name,
(role == SENTINEL_LEADER) ? "leader" : "observer", (role == SENTINEL_LEADER) ? "leader" : "observer",
state, from->ip, fromport, to->ip, toport); state, from->ip, fromport, to->ip, toport, NULL);
} }
/* ========================== sentinelRedisInstance ========================= */ /* ========================== sentinelRedisInstance ========================= */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment