projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d21a539
)
do not crash if service violates IPC protocol
author
Christian Grothoff
<christian@grothoff.org>
Tue, 24 Apr 2018 08:06:08 +0000
(10:06 +0200)
committer
Christian Grothoff
<christian@grothoff.org>
Tue, 24 Apr 2018 08:06:26 +0000
(10:06 +0200)
src/util/resolver_api.c
patch
|
blob
|
history
diff --git
a/src/util/resolver_api.c
b/src/util/resolver_api.c
index b92fd6a02dd0c127358a4fa002d43cb647724602..365b9960bba31c9ea2f9cecf1279f409f682d939 100644
(file)
--- 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))
{