diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2022-11-05 20:36:24 +0900 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2022-11-05 20:36:24 +0900 |
commit | b2b86cddc5be39a17e14f36fd5b4b70146725cc5 (patch) | |
tree | 7c476884058ba21e1d1dfe06b28987b01592685d | |
parent | e22c4a47f4d77c4013da2a7781abdeb8838901de (diff) | |
download | gnunet-b2b86cddc5be39a17e14f36fd5b4b70146725cc5.tar.gz gnunet-b2b86cddc5be39a17e14f36fd5b4b70146725cc5.zip |
-fix key length setting reclaim service
-rw-r--r-- | src/reclaim/gnunet-service-reclaim.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/reclaim/gnunet-service-reclaim.c b/src/reclaim/gnunet-service-reclaim.c index 2cf223173..e9616bef7 100644 --- a/src/reclaim/gnunet-service-reclaim.c +++ b/src/reclaim/gnunet-service-reclaim.c | |||
@@ -2263,6 +2263,7 @@ cred_iter_finished (void *cls) | |||
2263 | env = GNUNET_MQ_msg (arm, GNUNET_MESSAGE_TYPE_RECLAIM_CREDENTIAL_RESULT); | 2263 | env = GNUNET_MQ_msg (arm, GNUNET_MESSAGE_TYPE_RECLAIM_CREDENTIAL_RESULT); |
2264 | arm->id = htonl (ai->request_id); | 2264 | arm->id = htonl (ai->request_id); |
2265 | arm->credential_len = htonl (0); | 2265 | arm->credential_len = htonl (0); |
2266 | arm->key_len = htonl (0); | ||
2266 | GNUNET_MQ_send (ai->client->mq, env); | 2267 | GNUNET_MQ_send (ai->client->mq, env); |
2267 | GNUNET_CONTAINER_DLL_remove (ai->client->cred_iter_head, | 2268 | GNUNET_CONTAINER_DLL_remove (ai->client->cred_iter_head, |
2268 | ai->client->cred_iter_tail, | 2269 | ai->client->cred_iter_tail, |
@@ -2327,6 +2328,7 @@ cred_iter_cb (void *cls, | |||
2327 | GNUNET_MESSAGE_TYPE_RECLAIM_CREDENTIAL_RESULT); | 2328 | GNUNET_MESSAGE_TYPE_RECLAIM_CREDENTIAL_RESULT); |
2328 | arm->id = htonl (ai->request_id); | 2329 | arm->id = htonl (ai->request_id); |
2329 | arm->credential_len = htonl (rd->data_size); | 2330 | arm->credential_len = htonl (rd->data_size); |
2331 | arm->key_len = htonl (key_len); | ||
2330 | data_tmp = (char *) &arm[1]; | 2332 | data_tmp = (char *) &arm[1]; |
2331 | written = GNUNET_IDENTITY_write_public_key_to_buffer (&identity, | 2333 | written = GNUNET_IDENTITY_write_public_key_to_buffer (&identity, |
2332 | data_tmp, | 2334 | data_tmp, |