From fb2767e4f680c795352b269d0853df6a8e06300e Mon Sep 17 00:00:00 2001 From: David Barksdale Date: Fri, 27 Nov 2015 18:23:01 +0000 Subject: Don't match clients without handlers or callbacks --- src/core/gnunet-service-core_clients.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/core') diff --git a/src/core/gnunet-service-core_clients.c b/src/core/gnunet-service-core_clients.c index 9388ca747a..b1585002ca 100644 --- a/src/core/gnunet-service-core_clients.c +++ b/src/core/gnunet-service-core_clients.c @@ -199,8 +199,9 @@ type_match (uint16_t type, struct GSC_Client *c) { unsigned int i; - if (c->tcnt == 0) - return GNUNET_YES; /* peer without handlers matches ALL */ + if (c->tcnt == 0 && c->options != 0) + return GNUNET_YES; /* peer without handlers and inbound/outbond + callbacks matches ALL */ for (i = 0; i < c->tcnt; i++) if (type == c->types[i]) return GNUNET_YES; -- cgit v1.2.3-18-g5258