From 01477753e6dae515d31950d94e69e132ef4ed0b4 Mon Sep 17 00:00:00 2001 From: antirez Date: Fri, 24 Aug 2012 12:10:24 +0200 Subject: [PATCH] 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. --- src/sentinel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sentinel.c b/src/sentinel.c index 36bf2337..dda8008e 100644 --- a/src/sentinel.c +++ b/src/sentinel.c @@ -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 ========================= */