aboutsummaryrefslogtreecommitdiff
path: root/src/scalarproduct/scalarproduct_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-12-07 21:53:44 +0000
committerChristian Grothoff <christian@grothoff.org>2014-12-07 21:53:44 +0000
commit67eeadf357c24abec2dd790a54be74b7db71560d (patch)
tree01046bd16d390d420597797471adfb614c5073ea /src/scalarproduct/scalarproduct_api.c
parenta46808363beba27ad2c7e52246ef1ec694f8bf3a (diff)
downloadgnunet-67eeadf357c24abec2dd790a54be74b7db71560d.tar.gz
gnunet-67eeadf357c24abec2dd790a54be74b7db71560d.zip
-sending session ID back over same CADET channel is redundant
Diffstat (limited to 'src/scalarproduct/scalarproduct_api.c')
-rw-r--r--src/scalarproduct/scalarproduct_api.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/scalarproduct/scalarproduct_api.c b/src/scalarproduct/scalarproduct_api.c
index 8a4a0af98..eea17c8f6 100644
--- a/src/scalarproduct/scalarproduct_api.c
+++ b/src/scalarproduct/scalarproduct_api.c
@@ -270,7 +270,7 @@ do_send_message (void *cls,
270 void *buf) 270 void *buf)
271{ 271{
272 struct GNUNET_SCALARPRODUCT_ComputationHandle *h = cls; 272 struct GNUNET_SCALARPRODUCT_ComputationHandle *h = cls;
273 struct ComputationMultipartMessage *msg; 273 struct ComputationBobCryptodataMultipartMessage *msg;
274 size_t ret; 274 size_t ret;
275 uint32_t nsize; 275 uint32_t nsize;
276 uint32_t todo; 276 uint32_t todo;
@@ -300,14 +300,14 @@ do_send_message (void *cls,
300 } 300 }
301 301
302 todo = h->element_count_total - h->element_count_transfered; 302 todo = h->element_count_total - h->element_count_transfered;
303 nsize = sizeof (struct ComputationMultipartMessage) 303 nsize = sizeof (struct ComputationBobCryptodataMultipartMessage)
304 + todo * sizeof (struct GNUNET_SCALARPRODUCT_Element); 304 + todo * sizeof (struct GNUNET_SCALARPRODUCT_Element);
305 if (GNUNET_SERVER_MAX_MESSAGE_SIZE <= size) 305 if (GNUNET_SERVER_MAX_MESSAGE_SIZE <= size)
306 { 306 {
307 /* cannot do all of them, limit to what is possible in one message */ 307 /* cannot do all of them, limit to what is possible in one message */
308 todo = (GNUNET_SERVER_MAX_MESSAGE_SIZE - 1 - sizeof (struct ComputationMultipartMessage)) 308 todo = (GNUNET_SERVER_MAX_MESSAGE_SIZE - 1 - sizeof (struct ComputationBobCryptodataMultipartMessage))
309 / sizeof (struct GNUNET_SCALARPRODUCT_Element); 309 / sizeof (struct GNUNET_SCALARPRODUCT_Element);
310 nsize = sizeof (struct ComputationMultipartMessage) 310 nsize = sizeof (struct ComputationBobCryptodataMultipartMessage)
311 + todo * sizeof (struct GNUNET_SCALARPRODUCT_Element); 311 + todo * sizeof (struct GNUNET_SCALARPRODUCT_Element);
312 } 312 }
313 313