summaryrefslogtreecommitdiff
path: root/ares_parse_txt_reply.3
diff options
context:
space:
mode:
authorNick Alcock <nick.alcock@oracle.com>2012-05-21 16:25:07 +0200
committerDaniel Stenberg <daniel@haxx.se>2012-05-21 22:40:45 +0200
commit9bd38a4a6e3cc0ffc83585eb41650e300323fb04 (patch)
tree0ffe6ec5bce56591b0f5577cbffcd3a0a8017406 /ares_parse_txt_reply.3
parent7ec5e8e6564162ae579efe2cc9e1d311b1e1f6a9 (diff)
downloadc-ares-9bd38a4a6e3cc0ffc83585eb41650e300323fb04.tar.gz
c-ares-9bd38a4a6e3cc0ffc83585eb41650e300323fb04.tar.bz2
c-ares-9bd38a4a6e3cc0ffc83585eb41650e300323fb04.zip
Fix UDP and TCP port byte order in saved options.
The UDP and TCP port are stored in network byte order in the ares_channeldata, but are passed in to ares_init_options() in host byte order. Thus we must return them from ares_save_options() in host byte order too, or a duplicated channel will convert them again, leading to a nonfunctional channel and a mysterious connection refused error from ares_gethostbyname(). This breaks ares_dup(), thus the curl easy API when c-ares is used by curl, and thus all the curl easy API's users.
Diffstat (limited to 'ares_parse_txt_reply.3')
0 files changed, 0 insertions, 0 deletions