aboutsummaryrefslogtreecommitdiff
path: root/src/scalarproduct/gnunet-service-scalarproduct_alice.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-12-07 21:50:13 +0000
committerChristian Grothoff <christian@grothoff.org>2014-12-07 21:50:13 +0000
commita46808363beba27ad2c7e52246ef1ec694f8bf3a (patch)
treeacce0b46c7a9c5e1f150a8884068a42dcc0914af /src/scalarproduct/gnunet-service-scalarproduct_alice.c
parent8465e25bec93716b299e6bdddd832cf84fc5d58c (diff)
downloadgnunet-a46808363beba27ad2c7e52246ef1ec694f8bf3a.tar.gz
gnunet-a46808363beba27ad2c7e52246ef1ec694f8bf3a.zip
-fix FIXMEs
Diffstat (limited to 'src/scalarproduct/gnunet-service-scalarproduct_alice.c')
-rw-r--r--src/scalarproduct/gnunet-service-scalarproduct_alice.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/scalarproduct/gnunet-service-scalarproduct_alice.c b/src/scalarproduct/gnunet-service-scalarproduct_alice.c
index e75915f9a..3bfb4ffe0 100644
--- a/src/scalarproduct/gnunet-service-scalarproduct_alice.c
+++ b/src/scalarproduct/gnunet-service-scalarproduct_alice.c
@@ -731,6 +731,13 @@ handle_bobs_cryptodata_message (void *cls,
731 return GNUNET_SYSERR; 731 return GNUNET_SYSERR;
732 } 732 }
733 msg = (const struct ServiceResponseMessage *) message; 733 msg = (const struct ServiceResponseMessage *) message;
734 GNUNET_break_op (0 == ntohl (msg->reserved));
735 if (s->used_element_count != ntohl (msg->intersection_element_count))
736 {
737 /* Alice and Bob disagree on intersection set size, bad news! */
738 GNUNET_break_op (0);
739 return GNUNET_SYSERR;
740 }
734 contained = ntohl (msg->contained_element_count); 741 contained = ntohl (msg->contained_element_count);
735 required_size = sizeof (struct ServiceResponseMessage) 742 required_size = sizeof (struct ServiceResponseMessage)
736 + 2 * contained * sizeof (struct GNUNET_CRYPTO_PaillierCiphertext) 743 + 2 * contained * sizeof (struct GNUNET_CRYPTO_PaillierCiphertext)