diff options
author | Jukka Rissanen <jukka.rissanen@linux.intel.com> | 2012-10-18 14:35:18 +0300 |
---|---|---|
committer | Patrik Flykt <patrik.flykt@linux.intel.com> | 2012-10-19 10:26:27 +0300 |
commit | dcce19f15b225cc98341cd84f3d70d20b34a5406 (patch) | |
tree | 78e99fb6b811ce951419e9bb76c04421872c466d /gweb | |
parent | d620dbb4e5e30c86fc1f62c029dfe4b3d9e02bdf (diff) | |
download | connman-dcce19f15b225cc98341cd84f3d70d20b34a5406.tar.gz connman-dcce19f15b225cc98341cd84f3d70d20b34a5406.tar.bz2 connman-dcce19f15b225cc98341cd84f3d70d20b34a5406.zip |
gresolv: Remove query from queue before destroying the query
The order of actions is important here.
Diffstat (limited to 'gweb')
-rw-r--r-- | gweb/gresolv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gweb/gresolv.c b/gweb/gresolv.c index cf7f2e9c..d30e2f16 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); |