From 30808dca4087e6bf242debf575a6eae9bf4563c7 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 4 Jun 2007 21:26:30 +0000 Subject: minor edit since getting an ID seems pointless when failure happens --- ares/ares_query.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ares/ares_query.c b/ares/ares_query.c index 4ca4cf978..ed32e9288 100644 --- a/ares/ares_query.c +++ b/ares/ares_query.c @@ -108,14 +108,14 @@ void ares_query(ares_channel channel, const char *name, int dnsclass, rd = !(channel->flags & ARES_FLAG_NORECURSE); status = ares_mkquery(name, dnsclass, type, channel->next_id, rd, &qbuf, &qlen); - channel->next_id = generate_unique_id(channel); - if (status != ARES_SUCCESS) { callback(arg, status, NULL, 0); return; } + channel->next_id = generate_unique_id(channel); + /* Allocate and fill in the query structure. */ qquery = malloc(sizeof(struct qquery)); if (!qquery) -- cgit v1.2.3