Browse Source

Ignore share without data when recombining

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

2
src/secret.c

@ -270,7 +270,7 @@ gfsec_secret_combine(gfsec_secret_t *secret)
for ( u = v = 0; u < secret->n_shares; u++ ) {
share = secret->shares[u];
if ( ! gfsec_share_is_full(share) )
if ( share->data && ! gfsec_share_is_full(share) )
sharenrs[v++] = share->number;
}

Loading…
Cancel
Save