Unverified Commit d96cf363 authored by Binbin's avatar Binbin Committed by GitHub
Browse files

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.
parent e2cf3867
...@@ -230,6 +230,7 @@ void execCommand(client *c) { ...@@ -230,6 +230,7 @@ void execCommand(client *c) {
/* Commands may alter argc/argv, restore mstate. */ /* Commands may alter argc/argv, restore mstate. */
c->mstate.commands[j].argc = c->argc; c->mstate.commands[j].argc = c->argc;
c->mstate.commands[j].argv = c->argv; c->mstate.commands[j].argv = c->argv;
c->mstate.commands[j].argv_len = c->argv_len;
c->mstate.commands[j].cmd = c->cmd; c->mstate.commands[j].cmd = c->cmd;
} }
......
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