summaryrefslogtreecommitdiff
path: root/ares_query.c
diff options
context:
space:
mode:
authorhpopescu@ixiacom.com <hpopescu@ixiacom.com>2012-08-10 12:06:09 +0300
committerDaniel Stenberg <daniel@haxx.se>2012-08-17 00:54:47 +0200
commit90364defb038d5d6b97acf9df9ed152d2393a863 (patch)
tree82ea71d7a7718652727fed628849a247c464728b /ares_query.c
parente447bc5c603a139852fd74d9930c1293535ea749 (diff)
downloadc-ares-90364defb038d5d6b97acf9df9ed152d2393a863.tar.gz
c-ares-90364defb038d5d6b97acf9df9ed152d2393a863.tar.bz2
c-ares-90364defb038d5d6b97acf9df9ed152d2393a863.zip
Added new feature (rfc2671)
Diffstat (limited to 'ares_query.c')
-rw-r--r--ares_query.c4
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);