[PATCH v3 09/15] session: Don't filter match all out

Daniel Wagner wagi at monom.org
Fri Nov 2 09:26:18 PDT 2012


From: Daniel Wagner <daniel.wagner at bmw-carit.de>

If the user provides the match all rule we should add the policy
bearer to the result.
---
 src/session.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/session.c b/src/session.c
index a896503..e0de530 100644
--- a/src/session.c
+++ b/src/session.c
@@ -455,6 +455,9 @@ static int filter_bearer(GSList *policy_bearers,
 	for (it = policy_bearers; it != NULL; it = it->next) {
 		policy = GPOINTER_TO_INT(it->data);
 
+		if (bearer == CONNMAN_SERVICE_TYPE_UNKNOWN)
+			goto clone;
+
 		if (policy != CONNMAN_SERVICE_TYPE_UNKNOWN && policy != bearer)
 			continue;
 
-- 
1.7.11.7




More information about the connman mailing list