From 80d2de6cdc4d253c7fbc6a4bc067d856aab9cca9 Mon Sep 17 00:00:00 2001 From: Gabor X Toth <*@tg-x.net> Date: Wed, 6 Jan 2016 12:28:47 +0000 Subject: psyc/social: local join flag; social service: leave place, save _file --- src/psycstore/psyc_util_lib.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/psycstore') diff --git a/src/psycstore/psyc_util_lib.c b/src/psycstore/psyc_util_lib.c index 9e6b1b770..e87d6106d 100644 --- a/src/psycstore/psyc_util_lib.c +++ b/src/psycstore/psyc_util_lib.c @@ -1264,12 +1264,15 @@ GNUNET_PSYC_message_parse (const struct GNUNET_PSYC_MessageHeader *msg, struct GNUNET_PSYC_ReceiveHandle * recv = GNUNET_PSYC_receive_create (NULL, parse_message_part_cb, &cls); - GNUNET_PSYC_receive_message (recv, msg); + int ret = GNUNET_PSYC_receive_message (recv, msg); GNUNET_PSYC_receive_destroy (recv); + if (GNUNET_OK != ret) + return GNUNET_SYSERR; + return (GNUNET_PSYC_MESSAGE_STATE_END == cls.msg_state) ? GNUNET_OK - : GNUNET_SYSERR; + : GNUNET_NO; } -- cgit v1.2.3