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.
This commit is contained in:
Binbin 2022-06-26 17:32:34 +08:00 committed by GitHub
parent e2cf386765
commit d96cf3639a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}