projects
/
platform
/
upstream
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23c22db
)
session: Don't filter match all out
author
Daniel Wagner
<daniel.wagner@bmw-carit.de>
Fri, 2 Nov 2012 16:26:18 +0000
(17:26 +0100)
committer
Daniel Wagner
<daniel.wagner@bmw-carit.de>
Fri, 23 Nov 2012 12:47:24 +0000
(13:47 +0100)
If the user provides the match all rule we should add the policy
bearer to the result.
src/session.c
patch
|
blob
|
history
diff --git
a/src/session.c
b/src/session.c
index 688237b33e274eaffe86d461ae56e02bd0816a41..4bf7cfd90d3c1f045db2815275863af613f44f26 100644
(file)
--- 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;