diff options
author | dormando <dormando@rydia.net> | 2020-03-27 11:06:20 -0700 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2020-03-27 11:06:20 -0700 |
commit | f249724cedcab6605ca8a0769ac4b356a8124f63 (patch) | |
tree | e99fd017eb4f726f1c8422a2196437382d36ea1a /memcached.c | |
parent | 34f76d723a49c5d4b89fee46a9d4454e3ddfeef2 (diff) | |
download | memcached-f249724cedcab6605ca8a0769ac4b356a8124f63.tar.gz |
crash fix: errstr wasn't initialized in metaget
if meta_flag_preparse bailed out early it would try to read
uninitialized memory.
Diffstat (limited to 'memcached.c')
-rw-r--r-- | memcached.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/memcached.c b/memcached.c index 0563751..433d469 100644 --- a/memcached.c +++ b/memcached.c @@ -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; |