[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] 08/09: Reconnect to service instead of aborting on
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] 08/09: Reconnect to service instead of aborting on a malformed data message |
Date: |
Tue, 31 Jan 2017 05:09:16 +0100 |
This is an automated email from the git hooks/post-receive script.
bart-polot pushed a commit to branch master
in repository gnunet.
commit 9112c6ee1b16a1aea0d7e3ed96ad8587ee64f86f
Author: Bart Polot <address@hidden>
AuthorDate: Tue Jan 31 04:58:05 2017 +0100
Reconnect to service instead of aborting on a malformed data message
---
src/cadet/cadet_api.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
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);
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [gnunet] branch master updated (98fead2b7 -> 0e73a0143), gnunet, 2017/01/30
- [GNUnet-SVN] [gnunet] 01/09: CADET MQ API documentation improvements, gnunet, 2017/01/30
- [GNUnet-SVN] [gnunet] 05/09: Fix free of NULL pointer, gnunet, 2017/01/30
- [GNUnet-SVN] [gnunet] 06/09: Implement channel cleanup in MQ API, simplify destroy channel, gnunet, 2017/01/30
- [GNUnet-SVN] [gnunet] 03/09: Add note for clarification, gnunet, 2017/01/30
- [GNUnet-SVN] [gnunet] 04/09: Implementation of port opening and handling in MQ, gnunet, 2017/01/30
- [GNUnet-SVN] [gnunet] 07/09: Refactor reconnect code, gnunet, 2017/01/30
- [GNUnet-SVN] [gnunet] 02/09: Implement the connect and create_channel call for mq api, gnunet, 2017/01/30
- [GNUnet-SVN] [gnunet] 09/09: Implement incoming traffic handling on MQ, gnunet, 2017/01/30
- [GNUnet-SVN] [gnunet] 08/09: Reconnect to service instead of aborting on a malformed data message,
gnunet <=