From: Daniel Wagner Date: Fri, 2 Nov 2012 16:26:18 +0000 (+0100) Subject: session: Don't filter match all out X-Git-Tag: 1.10~128 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ef0ff73396e33e0195a8682d00f80c50421d91f1;p=platform%2Fupstream%2Fconnman.git session: Don't filter match all out If the user provides the match all rule we should add the policy bearer to the result. --- diff --git a/src/session.c b/src/session.c index 688237b3..4bf7cfd9 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;