From: Christian Grothoff Date: Mon, 17 Oct 2011 19:51:52 +0000 (+0000) Subject: fix X-Git-Tag: initial-import-from-subversion-38251~16450 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1429812c59a4d9cd0e98a1b8353412a02fa45d37;p=oweals%2Fgnunet.git fix --- 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)