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.
---
gweb/gresolv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
--
1.7.10
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman