From f23525cfc0c0a8931db0b20b35c1aabbfbc5ac4e Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 27 Nov 2014 20:17:24 +0000 Subject: use separate struct for just sending #elements in set, and check message size before casting --- src/set/set.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/set/set.h') diff --git a/src/set/set.h b/src/set/set.h index 944881b63..f688ccf72 100644 --- a/src/set/set.h +++ b/src/set/set.h @@ -188,6 +188,12 @@ struct GNUNET_SET_EvaluateMessage }; +/** + * Message sent by the service to the client to indicate an + * element that is removed (set intersection) or added + * (set union) or part of the final result, depending on + * options specified for the operation. + */ struct GNUNET_SET_ResultMessage { /** @@ -207,8 +213,7 @@ struct GNUNET_SET_ResultMessage uint16_t result_status GNUNET_PACKED; /** - * Type of the element attachted to the message, - * if any. + * Type of the element attachted to the message, if any. */ uint16_t element_type GNUNET_PACKED; -- cgit v1.2.3