From d1bf9723ea7c916e23c9dc431a0c42d633d67ac7 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 36bf23374..dda8008ed 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 ========================= */