aboutsummaryrefslogtreecommitdiff
path: root/src/core/gnunet-service-core.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-09-26 23:29:54 +0000
committerChristian Grothoff <christian@grothoff.org>2016-09-26 23:29:54 +0000
commit54966ddcb4b15a8e84e9b7380781284013786980 (patch)
treec26a7eabe941753a15bbfe13eb1278db7c1f20ba /src/core/gnunet-service-core.c
parent72f297a3fca8fb36719f219db402420e0978d44f (diff)
set flag to know that client did call init, thereby avoiding assertion failure on code that expected initialized client
Diffstat (limited to 'src/core/gnunet-service-core.c')
-rw-r--r--src/core/gnunet-service-core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/gnunet-service-core.c b/src/core/gnunet-service-core.c
index 2cf43f111d..fe7126d03e 100644
--- a/src/core/gnunet-service-core.c
+++ b/src/core/gnunet-service-core.c
@@ -681,6 +681,8 @@ GSC_CLIENTS_notify_client_about_neighbour (struct GSC_Client *client,
int old_match;
int new_match;
+ if (GNUNET_CORE_OPTION_NOTHING == client->options)
+ return; /* client did not yet send init */
old_match = GSC_TYPEMAP_test_match (tmap_old,
client->types,
client->tcnt);