diff options
Diffstat (limited to 'src/secretsharing/secretsharing_common.c')
-rw-r--r-- | src/secretsharing/secretsharing_common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/secretsharing/secretsharing_common.c b/src/secretsharing/secretsharing_common.c index 9f1e4900b..9f21a1102 100644 --- a/src/secretsharing/secretsharing_common.c +++ b/src/secretsharing/secretsharing_common.c | |||
@@ -94,7 +94,7 @@ GNUNET_SECRETSHARING_share_write (const struct GNUNET_SECRETSHARING_Share *share | |||
94 | char *p; | 94 | char *p; |
95 | int n; | 95 | int n; |
96 | 96 | ||
97 | payload_size = ntohs (sh->num_peers) * | 97 | payload_size = ntohs (share->num_peers) * |
98 | (sizeof (uint16_t) + sizeof (struct GNUNET_SECRETSHARING_FieldElement) + | 98 | (sizeof (uint16_t) + sizeof (struct GNUNET_SECRETSHARING_FieldElement) + |
99 | sizeof (struct GNUNET_PeerIdentity)); | 99 | sizeof (struct GNUNET_PeerIdentity)); |
100 | 100 | ||
@@ -134,3 +134,4 @@ GNUNET_SECRETSHARING_share_write (const struct GNUNET_SECRETSHARING_Share *share | |||
134 | return GNUNET_OK; | 134 | return GNUNET_OK; |
135 | } | 135 | } |
136 | 136 | ||
137 | |||