Upstream: gresolve: Fix a typo in conditional check for returning results
authorJaehyun Kim <jeik01.kim@samsung.com>
Sat, 6 Apr 2013 13:12:23 +0000 (22:12 +0900)
committerJaehyun Kim <jeik01.kim@samsung.com>
Sat, 6 Apr 2013 13:12:23 +0000 (22:12 +0900)
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

index 4dd09b6..e3623cc 100644 (file)
@@ -517,7 +517,7 @@ static gboolean query_timeout(gpointer user_data)
 
        g_queue_remove(resolv->query_queue, query);
 
-       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);