mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
minor edit since getting an ID seems pointless when failure happens
This commit is contained in:
parent
8629620b1c
commit
30808dca40
@ -108,14 +108,14 @@ void ares_query(ares_channel channel, const char *name, int dnsclass,
|
|||||||
rd = !(channel->flags & ARES_FLAG_NORECURSE);
|
rd = !(channel->flags & ARES_FLAG_NORECURSE);
|
||||||
status = ares_mkquery(name, dnsclass, type, channel->next_id, rd, &qbuf,
|
status = ares_mkquery(name, dnsclass, type, channel->next_id, rd, &qbuf,
|
||||||
&qlen);
|
&qlen);
|
||||||
channel->next_id = generate_unique_id(channel);
|
|
||||||
|
|
||||||
if (status != ARES_SUCCESS)
|
if (status != ARES_SUCCESS)
|
||||||
{
|
{
|
||||||
callback(arg, status, NULL, 0);
|
callback(arg, status, NULL, 0);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
channel->next_id = generate_unique_id(channel);
|
||||||
|
|
||||||
/* Allocate and fill in the query structure. */
|
/* Allocate and fill in the query structure. */
|
||||||
qquery = malloc(sizeof(struct qquery));
|
qquery = malloc(sizeof(struct qquery));
|
||||||
if (!qquery)
|
if (!qquery)
|
||||||
|
Loading…
Reference in New Issue
Block a user