From: Daniel Wagner Date: Tue, 9 Apr 2013 16:13:08 +0000 (+0200) Subject: session: Do not try to access already removed hash X-Git-Tag: 1.14~71 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d1f1a426f8e9b5387247cde7acfdfc6719ee5af3;p=platform%2Fupstream%2Fconnman.git session: Do not try to access already removed hash Make sure we never try to cleanup when the hash table has been destroyed. In this case all resources have been freed already. --- diff --git a/src/session.c b/src/session.c index 6916458..5f5255e 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);