diff options
-rw-r--r-- | src/session.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/session.c b/src/session.c index 69164580..5f5255e3 100644 --- a/src/session.c +++ b/src/session.c @@ -359,6 +359,9 @@ static void remove_policy(struct connman_session_policy *policy) gpointer key, value; struct connman_session *session; + if (session_hash == NULL) + return; + DBG("policy %p name %s", policy, policy->name); g_hash_table_iter_init(&iter, session_hash); |