diff options
author | Daniel Stenberg <daniel@haxx.se> | 2007-06-04 21:26:30 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2007-06-04 21:26:30 +0000 |
commit | 30294b0a67136e172bd7c0f0c4bd9ba296442315 (patch) | |
tree | 043151aeb65eecc8a46d1d6ce33fa18d55f443f5 /ares_query.c | |
parent | 3ea04a6435f25c7916e22fa510fd67b5eb30c86c (diff) | |
download | c-ares-30294b0a67136e172bd7c0f0c4bd9ba296442315.tar.gz c-ares-30294b0a67136e172bd7c0f0c4bd9ba296442315.tar.bz2 c-ares-30294b0a67136e172bd7c0f0c4bd9ba296442315.zip |
minor edit since getting an ID seems pointless when failure happens
Diffstat (limited to 'ares_query.c')
-rw-r--r-- | ares_query.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ares_query.c b/ares_query.c index 4ca4cf9..ed32e92 100644 --- a/ares_query.c +++ b/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) |