aboutsummaryrefslogtreecommitdiff
path: root/src/scalarproduct/scalarproduct_api.c
diff options
context:
space:
mode:
authorChristian Fuchs <christian.fuchs@cfuchs.net>2013-09-16 12:13:13 +0000
committerChristian Fuchs <christian.fuchs@cfuchs.net>2013-09-16 12:13:13 +0000
commit2ce422dff5c4290f307c77c8b62d695e64a9f751 (patch)
tree6a14b3d68fed9289d90cad31b8116210e535b1a5 /src/scalarproduct/scalarproduct_api.c
parentf790bd20460f2d9937915f0d2268035f910c296a (diff)
downloadgnunet-2ce422dff5c4290f307c77c8b62d695e64a9f751.tar.gz
gnunet-2ce422dff5c4290f307c77c8b62d695e64a9f751.zip
SP-client now reads the result from the correct offset (msg vs. message...)
upon shutdown, the server-API no longer crashes the SP-service by calling the client-disconnect handler with a &client == NULL
Diffstat (limited to 'src/scalarproduct/scalarproduct_api.c')
-rw-r--r--src/scalarproduct/scalarproduct_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scalarproduct/scalarproduct_api.c b/src/scalarproduct/scalarproduct_api.c
index eed7c315b..fc470eb20 100644
--- a/src/scalarproduct/scalarproduct_api.c
+++ b/src/scalarproduct/scalarproduct_api.c
@@ -190,7 +190,7 @@ process_result_message (void *cls,
190 gcry_mpi_t num; 190 gcry_mpi_t num;
191 size_t read = 0; 191 size_t read = 0;
192 192
193 if (0 != (rc = gcry_mpi_scan (&num, GCRYMPI_FMT_USG, &msg[1], product_len, &read))) 193 if (0 != (rc = gcry_mpi_scan (&num, GCRYMPI_FMT_STD, &message[1], product_len, &read)))
194 { 194 {
195 LOG_GCRY(GNUNET_ERROR_TYPE_ERROR, "gcry_mpi_scan", rc); 195 LOG_GCRY(GNUNET_ERROR_TYPE_ERROR, "gcry_mpi_scan", rc);
196 gcry_mpi_release (result); 196 gcry_mpi_release (result);