summaryrefslogtreecommitdiff
path: root/ares_parse_txt_reply.c
AgeCommit message (Collapse)AuthorFilesLines
2012-12-14setup_once.h: refactor inclusion of <unistd.h> and <sys/socket.h>Yang Tse1-3/+0
Inclusion of these two header files now done in setup_once.h
2012-12-14Header inclusion clean-upYang Tse1-3/+0
Remove header inclusions already done in setup_once.h
2010-03-27remove all $Id$ linesDaniel Stenberg1-1/+0
2009-11-26- Larry Lansing fixed ares_parse_srv_reply to properly parse repliesYang Tse1-3/+3
which might contain non-SRV answers, skipping over potential non-SRV ones such as CNAMEs.
2009-11-20Fix commentYang Tse1-1/+1
2009-11-20Jakub Hrozek modified ares_parse_srv_reply() and ares_parse_txt_reply() APIYang Tse1-34/+31
to return a linked lists of results. These were also modified to internally use the ares_data memory struct and as such its result must be free'ed with ares_free_data().
2009-11-02Renamed c-ares setup.h to ares_setup.hYang Tse1-1/+1
2009-10-30Header inclusion depending on HAVE_* symbol.Yang Tse1-10/+23
Fix two typos.
2009-10-30Comparison of the Initial revision of this file with ares_parse_a_reply.cYang Tse1-15/+16
shows that this one is actually a modified copy of ares_parse_a_reply.c. In order to comply with ares_parse_a_reply.c's M.I.T. license, the old 1998 M.I.T. copyright notice is now also preserved in this file the same as it is done in other ares_parse_*.c files.
2009-10-30Fix commentYang Tse1-1/+1
2009-10-30In no particular order, changed/fixed all of the following inYang Tse1-19/+34
ares_parse_txt_reply() current version: - Fixed a couple of potential double free's. - Fixed memory leaks upon out of memory condition. - Fixed pointer arithmetic. - Setting ntxtreply to zero upon entry for all failure cases. - Changed data type to size_t for variables substr_len, str_len and the length member of ares_txt_reply struct. - Avoided a couple of memcpy() calls. - Changed i data type to unsigned int to prevent compiler warnings. - Adjusted a comment. - Use ARES_SUCCESS literal for successfull completion. - Added CVS Id tag.
2009-10-29Jakub Hrozek added ares_parse_txt_reply() for TXT parsingDaniel Stenberg1-0/+176