From: Daniel Wagner <[email protected]>

Match all is expressed via CONNMAN_SERVICE_TYPE_UNKNOWN. If the
policy list is empty, that we just do not match anything
---
 src/session.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/session.c b/src/session.c
index 6916458..39920af 100644
--- a/src/session.c
+++ b/src/session.c
@@ -514,7 +514,7 @@ static int filter_bearer(GSList *policy_bearers,
        GSList *it;
 
        if (policy_bearers == NULL)
-               goto clone;
+               return 0;
 
        for (it = policy_bearers; it != NULL; it = it->next) {
                policy = GPOINTER_TO_INT(it->data);
-- 
1.8.2.rc3.16.gce432ca

_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to