diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-09-26 23:29:54 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-09-26 23:29:54 +0000 |
commit | 54966ddcb4b15a8e84e9b7380781284013786980 (patch) | |
tree | c26a7eabe941753a15bbfe13eb1278db7c1f20ba /src/core/gnunet-service-core.c | |
parent | 72f297a3fca8fb36719f219db402420e0978d44f (diff) | |
download | gnunet-54966ddcb4b15a8e84e9b7380781284013786980.tar.gz gnunet-54966ddcb4b15a8e84e9b7380781284013786980.zip |
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.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/gnunet-service-core.c b/src/core/gnunet-service-core.c index 2cf43f111..fe7126d03 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, | |||
681 | int old_match; | 681 | int old_match; |
682 | int new_match; | 682 | int new_match; |
683 | 683 | ||
684 | if (GNUNET_CORE_OPTION_NOTHING == client->options) | ||
685 | return; /* client did not yet send init */ | ||
684 | old_match = GSC_TYPEMAP_test_match (tmap_old, | 686 | old_match = GSC_TYPEMAP_test_match (tmap_old, |
685 | client->types, | 687 | client->types, |
686 | client->tcnt); | 688 | client->tcnt); |