From: Bart Polot Date: Tue, 31 Jan 2017 03:58:05 +0000 (+0100) Subject: Reconnect to service instead of aborting on a malformed data message X-Git-Tag: taler-0.2.1~228 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9112c6ee1b16a1aea0d7e3ed96ad8587ee64f86f;p=oweals%2Fgnunet.git Reconnect to service instead of aborting on a malformed data message --- diff --git a/src/cadet/cadet_api.c b/src/cadet/cadet_api.c index 9448cc7a5..a1c7e8461 100644 --- a/src/cadet/cadet_api.c +++ b/src/cadet/cadet_api.c @@ -958,7 +958,12 @@ handle_local_data (void *cls, ch = retrieve_channel (h, message->ccn); - GNUNET_assert (NULL != ch); + if (NULL == ch) + { + GNUNET_break_op (0); + reconnect (h); + return; + } payload = (struct GNUNET_MessageHeader *) &message[1]; type = ntohs (payload->type);