From: Daniel Wagner <daniel.wag...@bmw-carit.de> --- src/session.c | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/src/session.c b/src/session.c index 601a373..29d98ea 100644 --- a/src/session.c +++ b/src/session.c @@ -1572,6 +1572,11 @@ static void session_create_cb(struct connman_session *session, DBG("session %p config %p", session, config); + if (config == NULL) { + err = -ENOMEM; + goto out; + } + session->policy_config = config; info = session->info; -- 1.7.12.1.382.gb0576a6 _______________________________________________ connman mailing list connman@connman.net http://lists.connman.net/listinfo/connman