diff options
author | amatus <amatus@140774ce-b5e7-0310-ab8b-a85725594a96> | 2015-11-27 18:23:01 +0000 |
---|---|---|
committer | amatus <amatus@140774ce-b5e7-0310-ab8b-a85725594a96> | 2015-11-27 18:23:01 +0000 |
commit | 21a9b3dddba32e20da5b27ae7f3f210783eb38e7 (patch) | |
tree | 9bc997ffafa29b10a4081e05da11e2f5e949b29d | |
parent | 44e9229594de22c7e510542817202c01d79701bc (diff) |
Don't match clients without handlers or callbacks
git-svn-id: https://gnunet.org/svn/gnunet@36695 140774ce-b5e7-0310-ab8b-a85725594a96
-rw-r--r-- | src/core/gnunet-service-core_clients.c | 5 |
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 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; |