summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2012-10-18 11:35:18 (GMT)
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-10-19 07:26:27 (GMT)
commitdcce19f15b225cc98341cd84f3d70d20b34a5406 (patch)
tree78e99fb6b811ce951419e9bb76c04421872c466d
parentd620dbb4e5e30c86fc1f62c029dfe4b3d9e02bdf (diff)
downloadconnman-dcce19f15b225cc98341cd84f3d70d20b34a5406.zip
connman-dcce19f15b225cc98341cd84f3d70d20b34a5406.tar.gz
connman-dcce19f15b225cc98341cd84f3d70d20b34a5406.tar.bz2
gresolv: Remove query from queue before destroying the query
The order of actions is important here.
-rw-r--r--gweb/gresolv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gweb/gresolv.c b/gweb/gresolv.c
index cf7f2e9..d30e2f1 100644
--- a/gweb/gresolv.c
+++ b/gweb/gresolv.c
@@ -1052,9 +1052,9 @@ guint g_resolv_lookup_hostname(GResolv *resolv, const char *hostname,
if (resolv->result_family != AF_INET) {
if (add_query(lookup, hostname, ns_t_aaaa)) {
if (resolv->result_family != AF_INET6) {
- destroy_query(lookup->ipv4_query);
g_queue_remove(resolv->query_queue,
lookup->ipv4_query);
+ destroy_query(lookup->ipv4_query);
}
g_free(lookup);