From: Christian Grothoff Date: Tue, 11 Oct 2011 12:19:45 +0000 (+0000) Subject: fix X-Git-Tag: initial-import-from-subversion-38251~16626 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=df38cef29b85922924f02af1761e29252b6ec6a0;p=oweals%2Fgnunet.git fix --- diff --git a/src/core/gnunet-service-core_clients.c b/src/core/gnunet-service-core_clients.c index 838fa42db..6caacb002 100644 --- a/src/core/gnunet-service-core_clients.c +++ b/src/core/gnunet-service-core_clients.c @@ -216,13 +216,15 @@ send_to_all_clients (const struct GNUNET_MessageHeader *msg, for (c = client_head; c != NULL; c = c->next) { - if (! ( (0 != (c->options & options)) || - ( (0 != (options & GNUNET_CORE_OPTION_SEND_FULL_INBOUND)) && - (GNUNET_YES == type_match (type, c)) ) ) ) - continue; /* skip */ + if ( (0 == (options & GNUNET_CORE_OPTION_SEND_FULL_INBOUND)) && + (GNUNET_YES == type_match (type, c)) ) + continue; /* not the full message, but we'd like the full one! */ + if ( (0 == (c->options & options)) && + (GNUNET_YES != type_match (type, c)) ) + continue; /* neither options nor type match permit the message */ #if DEBUG_CORE GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, - "Sending message to all clients interested in messages of type %u.\n", + "Sending message to client interested in messages of type %u.\n", (unsigned int) type); #endif send_to_client (c, msg, can_drop);