gresolve: Fix a typo in conditional check for returning results
authorGrant Erickson <marathon96@gmail.com>
Mon, 16 Jul 2012 16:48:08 +0000 (09:48 -0700)
committerDaniel Wagner <daniel.wagner@bmw-carit.de>
Tue, 17 Jul 2012 08:13:56 +0000 (10:13 +0200)
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 e93bf4f..caa30ee 100644 (file)
@@ -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);