Browse Source

TT#63550 fix mem allocation bug resulting in mem corruption during redis restore

fixes #811
possibly also fixes #802

Change-Id: Ic14e4916e9c340221a1c0b177707a1d1bef73347
(cherry picked from commit 24d67d0662)
changes/52/31852/1
Richard Fuchs 7 years ago
parent
commit
16c9979e19
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      daemon/redis.c

+ 1
- 1
daemon/redis.c View File

@ -1088,7 +1088,7 @@ static int redis_hash_get_sdes_params(GQueue *out, const struct redis_hash *h, c
snprintf(tagkey, sizeof(tagkey), "%s_tag", kk);
if (redis_hash_get_unsigned(&tag, h, tagkey))
break;
struct crypto_params_sdes *cps = g_slice_alloc0(sizeof(cps));
struct crypto_params_sdes *cps = g_slice_alloc0(sizeof(*cps));
cps->tag = tag;
int ret = redis_hash_get_sdes_params1(&cps->params, h, kk);
if (ret) {


Loading…
Cancel
Save