[PATCH v4 12/18] session: Don't filter match all out

Daniel Wagner wagi at monom.org
Wed Nov 14 08:26:11 PST 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 | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/session.c b/src/session.c
index 688237b..4bf7cfd 100644
--- a/src/session.c
+++ b/src/session.c
@@ -465,6 +465,11 @@ 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) {
+			bearer = policy;
+			goto clone;
+		}
+
 		if (policy != CONNMAN_SERVICE_TYPE_UNKNOWN && policy != bearer)
 			continue;
 
-- 
1.8.0.rc0




More information about the connman mailing list