From 1429812c59a4d9cd0e98a1b8353412a02fa45d37 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 17 Oct 2011 19:51:52 +0000 Subject: [PATCH] fix --- src/core/gnunet-service-core_clients.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/core/gnunet-service-core_clients.c b/src/core/gnunet-service-core_clients.c index 3159772aa..c37f5bafc 100644 --- a/src/core/gnunet-service-core_clients.c +++ b/src/core/gnunet-service-core_clients.c @@ -632,7 +632,13 @@ GSC_CLIENTS_notify_client_about_neighbour (struct GSC_Client *client, old_match = GSC_TYPEMAP_test_match (tmap_old, client->types, client->tcnt); new_match = GSC_TYPEMAP_test_match (tmap_new, client->types, client->tcnt); if (client->tcnt == 0) - new_match = GNUNET_YES; /* empty list matches ALL */ + { + /* empty list matches ALL (if not NULL) */ + if (tmap_new != NULL) + new_match = GNUNET_YES; + if (tmap_old != NULL) + old_match = GNUNET_YES; + } if (old_match == new_match) return; /* no change */ if (old_match == GNUNET_NO) -- 2.25.1