From 043da7360b1036dbcdb995e3b3b9a77da6c31cd5 Mon Sep 17 00:00:00 2001 From: Grant Erickson Date: Mon, 16 Jul 2012 09:48:08 -0700 Subject: 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. --- gweb/gresolv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gweb') diff --git a/gweb/gresolv.c b/gweb/gresolv.c index e93bf4fc..caa30eeb 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); -- cgit v1.2.3