From d96cf3639a371574c212d87c70e5a80214fc721f Mon Sep 17 00:00:00 2001 From: Binbin Date: Sun, 26 Jun 2022 17:32:34 +0800 Subject: [PATCH] Sync argv_len var back after command call in execCommand (#10900) This is harmless, we only restore mstate to make sure we free the right pointer in freeClientMultiState, but it'll be nicer to also sync that argv_len var back. --- src/multi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/multi.c b/src/multi.c index 78f08526a..53194e55e 100644 --- a/src/multi.c +++ b/src/multi.c @@ -230,6 +230,7 @@ void execCommand(client *c) { /* Commands may alter argc/argv, restore mstate. */ c->mstate.commands[j].argc = c->argc; c->mstate.commands[j].argv = c->argv; + c->mstate.commands[j].argv_len = c->argv_len; c->mstate.commands[j].cmd = c->cmd; }