From df38cef29b85922924f02af1761e29252b6ec6a0 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 11 Oct 2011 12:19:45 +0000 Subject: [PATCH] fix --- src/core/gnunet-service-core_clients.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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); -- 2.25.1