fix mem allocation bug resulting in mem corruption during redis restore

fixes #811
possibly also fixes #802

Change-Id: Ic14e4916e9c340221a1c0b177707a1d1bef73347
changes/33/31433/2
Richard Fuchs 6 years ago
parent 10bd041c99
commit 24d67d0662

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