diff options
author | Christian Fuchs <christian.fuchs@cfuchs.net> | 2013-09-12 10:03:41 +0000 |
---|---|---|
committer | Christian Fuchs <christian.fuchs@cfuchs.net> | 2013-09-12 10:03:41 +0000 |
commit | 4b113550b06da869e7351c8f36437226874fd20a (patch) | |
tree | 2a9fe282abea804ae8b66df39cdc1b9416a4fe2f /src/scalarproduct/scalarproduct_api.c | |
parent | cb32d6369ef9b9c4a4a9adc3391dff3355da9222 (diff) | |
download | gnunet-4b113550b06da869e7351c8f36437226874fd20a.tar.gz gnunet-4b113550b06da869e7351c8f36437226874fd20a.zip |
bugfix, forgot to reset a variable
Diffstat (limited to 'src/scalarproduct/scalarproduct_api.c')
-rw-r--r-- | src/scalarproduct/scalarproduct_api.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scalarproduct/scalarproduct_api.c b/src/scalarproduct/scalarproduct_api.c index 95aaaf86a..09c726c88 100644 --- a/src/scalarproduct/scalarproduct_api.c +++ b/src/scalarproduct/scalarproduct_api.c | |||
@@ -331,7 +331,7 @@ GNUNET_SCALARPRODUCT_response (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
331 | uint64_t i; | 331 | uint64_t i; |
332 | 332 | ||
333 | GNUNET_assert (GNUNET_SERVER_MAX_MESSAGE_SIZE >= sizeof (struct GNUNET_SCALARPRODUCT_client_request) | 333 | GNUNET_assert (GNUNET_SERVER_MAX_MESSAGE_SIZE >= sizeof (struct GNUNET_SCALARPRODUCT_client_request) |
334 | +element_count * sizeof (int32_t)); | 334 | + element_count * sizeof (int32_t)); |
335 | h = GNUNET_new (struct GNUNET_SCALARPRODUCT_ComputationHandle); | 335 | h = GNUNET_new (struct GNUNET_SCALARPRODUCT_ComputationHandle); |
336 | h->client = GNUNET_CLIENT_connect ("scalarproduct", cfg); | 336 | h->client = GNUNET_CLIENT_connect ("scalarproduct", cfg); |
337 | if (!h->client) | 337 | if (!h->client) |
@@ -351,7 +351,7 @@ GNUNET_SCALARPRODUCT_response (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
351 | return NULL; | 351 | return NULL; |
352 | } | 352 | } |
353 | 353 | ||
354 | size = sizeof (struct GNUNET_SCALARPRODUCT_client_request) +element_count * sizeof (int32_t); | 354 | size = sizeof (struct GNUNET_SCALARPRODUCT_client_request) + element_count * sizeof (int32_t); |
355 | 355 | ||
356 | h->cont_status = cont; | 356 | h->cont_status = cont; |
357 | h->cont_cls = cont_cls; | 357 | h->cont_cls = cont_cls; |