aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorDavid Barksdale <amatus.amongus@gmail.com>2015-11-27 18:23:01 +0000
committerDavid Barksdale <amatus.amongus@gmail.com>2015-11-27 18:23:01 +0000
commitfb2767e4f680c795352b269d0853df6a8e06300e (patch)
tree9bc997ffafa29b10a4081e05da11e2f5e949b29d /src/core
parent0442f92fb6ec43d34a676dc35893375b57a61d6c (diff)
downloadgnunet-fb2767e4f680c795352b269d0853df6a8e06300e.tar.gz
gnunet-fb2767e4f680c795352b269d0853df6a8e06300e.zip
Don't match clients without handlers or callbacks
Diffstat (limited to 'src/core')
-rw-r--r--src/core/gnunet-service-core_clients.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/gnunet-service-core_clients.c b/src/core/gnunet-service-core_clients.c
index 9388ca747..b1585002c 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)
199{ 199{
200 unsigned int i; 200 unsigned int i;
201 201
202 if (c->tcnt == 0) 202 if (c->tcnt == 0 && c->options != 0)
203 return GNUNET_YES; /* peer without handlers matches ALL */ 203 return GNUNET_YES; /* peer without handlers and inbound/outbond
204 callbacks matches ALL */
204 for (i = 0; i < c->tcnt; i++) 205 for (i = 0; i < c->tcnt; i++)
205 if (type == c->types[i]) 206 if (type == c->types[i])
206 return GNUNET_YES; 207 return GNUNET_YES;