diff options
author | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2012-11-02 17:26:18 +0100 |
---|---|---|
committer | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2012-11-23 13:47:24 +0100 |
commit | ef0ff73396e33e0195a8682d00f80c50421d91f1 (patch) | |
tree | eeccdb99722e2d7233139ad18ef62252c6f37e23 | |
parent | 23c22db2e95243d2431c8b493ef134cfacaead91 (diff) | |
download | connman-ef0ff73396e33e0195a8682d00f80c50421d91f1.tar.gz connman-ef0ff73396e33e0195a8682d00f80c50421d91f1.tar.bz2 connman-ef0ff73396e33e0195a8682d00f80c50421d91f1.zip |
session: Don't filter match all out
If the user provides the match all rule we should add the policy
bearer to the result.
-rw-r--r-- | src/session.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; |