From: Marcel Holtmann Date: Thu, 26 Nov 2009 08:00:25 +0000 (+0100) Subject: Fix segmentation fault on resolver shutdown X-Git-Tag: 2.0_alpha~3152 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8124bef495c1ad04d1f6e8ed190abf984b356ed9;p=framework%2Fconnectivity%2Fconnman.git Fix segmentation fault on resolver shutdown --- diff --git a/src/resolver.c b/src/resolver.c index 24caf73..3c78d21 100644 --- a/src/resolver.c +++ b/src/resolver.c @@ -52,7 +52,7 @@ static void remove_entries(GSList *entries) entry_list = g_slist_remove(entry_list, entry); - if (resolver->remove) + if (resolver && resolver->remove) resolver->remove(entry->interface, entry->domain, entry->server);