session: Call callback directly when no plugin is assigned
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Wed, 5 Dec 2012 13:57:50 +0000 (14:57 +0100)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Wed, 5 Dec 2012 14:51:07 +0000 (16:51 +0200)
commit7fbdf15b2545bd9e9d1cb0376544e4f4095d2bd2
tree326c9d2adc7d76eca00366fc2f07131baff656d0
parent7adbef0b1091f6320f3a0ff83a056e5d0c5e520e
session: Call callback directly when no plugin is assigned

When we have no plugin assigned we have to call the final
session callback directly.

Since __connman_session_create() doesn't know if a plugin was
called or not, create_policy_config() or __connman_session_create()
needs to free all allocated resources (also in the error path).
src/session.c