gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnunet] branch master updated: do not crash if service vio


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: do not crash if service violates IPC protocol
Date: Tue, 24 Apr 2018 10:06:29 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new c35bbe84d do not crash if service violates IPC protocol
c35bbe84d is described below

commit c35bbe84da19bc589785ceb4a0cf29de6c57fc21
Author: Christian Grothoff <address@hidden>
AuthorDate: Tue Apr 24 10:06:08 2018 +0200

    do not crash if service violates IPC protocol
---
 src/util/resolver_api.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/src/util/resolver_api.c b/src/util/resolver_api.c
index b92fd6a02..365b9960b 100644
--- a/src/util/resolver_api.c
+++ b/src/util/resolver_api.c
@@ -478,7 +478,15 @@ handle_response (void *cls,
   char *nret;
 
   (void) cls;
-  GNUNET_assert (NULL != rh);
+  if (NULL == rh)
+  {
+    /* Resolver service sent two replies to one query? Bad! */
+    GNUNET_break (0);
+    GNUNET_MQ_destroy (mq);
+    mq = NULL;
+    reconnect ();
+    return;
+  }
   size = ntohs (msg->size);
   if (size == sizeof (struct GNUNET_MessageHeader))
   {

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]