# HG changeset patch # User aman@tmm1.net # Date 1247349232 0 # Node ID 5345dfe482725b2a6dc8bad3a04356b96b347178 # Parent 75ef7eab4978c1cb302306001c42da65e6db9731 Don't assume a resolver generated the response. committer: Paul Aurich diff -r 75ef7eab4978 -r 5345dfe48272 libpurple/dnsquery.c --- a/libpurple/dnsquery.c Sat Jul 11 21:44:14 2009 +0000 +++ b/libpurple/dnsquery.c Sat Jul 11 21:53:52 2009 +0000 @@ -118,8 +118,11 @@ * Add the resolver to the list of available resolvers, and set it * to NULL so that it doesn't get destroyed along with the query_data */ - free_dns_children = g_slist_prepend(free_dns_children, query_data->resolver); - query_data->resolver = NULL; + if (query_data->resolver) + { + free_dns_children = g_slist_prepend(free_dns_children, query_data->resolver); + query_data->resolver = NULL; + } #endif /* PURPLE_DNSQUERY_USE_FORK */ purple_dnsquery_destroy(query_data);