Skip to content

Commit

Permalink
crash fix: errstr wasn't initialized in metaget
Browse files Browse the repository at this point in the history
if meta_flag_preparse bailed out early it would try to read
uninitialized memory.
  • Loading branch information
dormando committed Mar 27, 2020
1 parent 34f76d7 commit f249724
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion memcached.c
Original file line number Diff line number Diff line change
Expand Up @@ -4328,7 +4328,7 @@ static void process_mget_command(conn *c, token_t *tokens, const size_t ntokens)
bool item_created = false;
bool won_token = false;
bool ttl_set = false;
char *errstr;
char *errstr = "CLIENT_ERROR bad command line format";
mc_resp *resp = c->resp;
char *p = resp->wbuf;

Expand Down

0 comments on commit f249724

Please sign in to comment.