[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r17370 - gnunet/src/core
From: |
gnunet |
Subject: |
[GNUnet-SVN] r17370 - gnunet/src/core |
Date: |
Tue, 11 Oct 2011 14:19:45 +0200 |
Author: grothoff
Date: 2011-10-11 14:19:45 +0200 (Tue, 11 Oct 2011)
New Revision: 17370
Modified:
gnunet/src/core/gnunet-service-core_clients.c
Log:
fix
Modified: gnunet/src/core/gnunet-service-core_clients.c
===================================================================
--- gnunet/src/core/gnunet-service-core_clients.c 2011-10-11 11:35:20 UTC
(rev 17369)
+++ gnunet/src/core/gnunet-service-core_clients.c 2011-10-11 12:19:45 UTC
(rev 17370)
@@ -216,13 +216,15 @@
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);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r17370 - gnunet/src/core,
gnunet <=