aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrant Erickson <marathon96@gmail.com>2012-07-16 09:48:08 -0700
committerMarcel Holtmann <marcel@holtmann.org>2012-09-11 14:46:19 +0200
commit7846605ef79e49e638569d1dfb470ef04cf51f51 (patch)
tree44772596b254c2e3eb48a3672df5740fbcde7c06
parentdec81919302a11a5804eb8a33df0b0e6abdb4962 (diff)
downloadmmsd-7846605ef79e49e638569d1dfb470ef04cf51f51.tar.gz
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.
-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);