Browse Source

Fix allocation of share pointers

master
Damien Goutte-Gattat 5 years ago
parent
commit
4cfefd064d
  1. 2
      src/secret.c

2
src/secret.c

@ -202,7 +202,7 @@ gfsec_secret_add_share(gfsec_secret_t *secret, gfsec_share_t *share)
return GFSEC_ERR_TOO_MANY_SHARES;
}
tmp = realloc(secret->shares, new_max);
tmp = realloc(secret->shares, new_max * sizeof(gfsec_share_t *));
if ( ! tmp )
return GFSEC_ERR_SYSTEM_ERROR;

Loading…
Cancel
Save