diff options
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 63652e2..ed6b6e8 100644 --- a/ares_query.c +++ b/ares_query.c @@ -114,8 +114,8 @@ void ares_query(ares_channel channel, const char *name, int dnsclass, /* Compose the query. */ rd = !(channel->flags & ARES_FLAG_NORECURSE); - status = ares_mkquery(name, dnsclass, type, channel->next_id, rd, &qbuf, - &qlen); + status = ares_create_query(name, dnsclass, type, channel->next_id, rd, &qbuf, + &qlen, (channel->flags & ARES_FLAG_EDNS) ? channel->ednspsz : 0); if (status != ARES_SUCCESS) { if (qbuf != NULL) free(qbuf); |