diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-10-17 19:51:52 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-10-17 19:51:52 +0000 |
commit | 1429812c59a4d9cd0e98a1b8353412a02fa45d37 (patch) | |
tree | d7935f24f755b77987f43cb7fbbe776790101d56 /src/core | |
parent | 9ca88c3cd5f81dfc96ca25b3bb716c4ca004beb0 (diff) | |
download | gnunet-1429812c59a4d9cd0e98a1b8353412a02fa45d37.tar.gz gnunet-1429812c59a4d9cd0e98a1b8353412a02fa45d37.zip |
fix
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/gnunet-service-core_clients.c | 8 |
1 files changed, 7 insertions, 1 deletions
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, | |||
632 | old_match = GSC_TYPEMAP_test_match (tmap_old, client->types, client->tcnt); | 632 | old_match = GSC_TYPEMAP_test_match (tmap_old, client->types, client->tcnt); |
633 | new_match = GSC_TYPEMAP_test_match (tmap_new, client->types, client->tcnt); | 633 | new_match = GSC_TYPEMAP_test_match (tmap_new, client->types, client->tcnt); |
634 | if (client->tcnt == 0) | 634 | if (client->tcnt == 0) |
635 | new_match = GNUNET_YES; /* empty list matches ALL */ | 635 | { |
636 | /* empty list matches ALL (if not NULL) */ | ||
637 | if (tmap_new != NULL) | ||
638 | new_match = GNUNET_YES; | ||
639 | if (tmap_old != NULL) | ||
640 | old_match = GNUNET_YES; | ||
641 | } | ||
636 | if (old_match == new_match) | 642 | if (old_match == new_match) |
637 | return; /* no change */ | 643 | return; /* no change */ |
638 | if (old_match == GNUNET_NO) | 644 | if (old_match == GNUNET_NO) |