summaryrefslogtreecommitdiff
path: root/gweb
diff options
context:
space:
mode:
authorGrant Erickson <marathon96@gmail.com>2012-07-16 16:48:08 (GMT)
committerDaniel Wagner <daniel.wagner@bmw-carit.de>2012-07-17 08:13:56 (GMT)
commit043da7360b1036dbcdb995e3b3b9a77da6c31cd5 (patch)
treee47b2f7cee6da9b3e5615621f8bd0496ea56b7df /gweb
parent32b622202f81277b9e11001a0d9c4aa17b84fbdd (diff)
downloadconnman-043da7360b1036dbcdb995e3b3b9a77da6c31cd5.zip
connman-043da7360b1036dbcdb995e3b3b9a77da6c31cd5.tar.gz
connman-043da7360b1036dbcdb995e3b3b9a77da6c31cd5.tar.bz2
gresolve: Fix a typo in conditional check for returning results
In both parse_response and query_timeout there exists logic that checks to ensure that both an A and AAAA lookups have either been responded to or timed out before processing and returning results to the caller. In query_timeout, there was a typo in the condition check such that it did not match those conditions tested in parse_response.
Diffstat (limited to 'gweb')
-rw-r--r--gweb/gresolv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gweb/gresolv.c b/gweb/gresolv.c
index e93bf4f..caa30ee 100644
--- a/gweb/gresolv.c
+++ b/gweb/gresolv.c
@@ -514,7 +514,7 @@ static gboolean query_timeout(gpointer user_data)
lookup->ipv6_query = NULL;
}
- if (lookup->ipv4_query == NULL && lookup->ipv4_query == NULL)
+ if (lookup->ipv4_query == NULL && lookup->ipv6_query == NULL)
sort_and_return_results(lookup);
destroy_query(query);