fix
authorChristian Grothoff <christian@grothoff.org>
Mon, 17 Oct 2011 19:51:52 +0000 (19:51 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 17 Oct 2011 19:51:52 +0000 (19:51 +0000)
src/core/gnunet-service-core_clients.c

index 3159772aabf5ab365a5028f96e3be14b3385adf9..c37f5bafc782ed79cd4532f8a46590832ce7264f 100644 (file)
@@ -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)