According to the manual when calling ares_parse_a_reply(), the caller is to expect that no more than naddrttls will be written to addrttls and naddrttls will be set to the number of records written. However this is not what is happening - unless I have missed something very obvious - naddrttls is set to the total number of records present. I have the feeling that this behavior is very recent?
Can you confirm this? Is it a documentation problem and was the change of behavior intended?