summaryrefslogtreecommitdiff
path: root/ares_parse_srv_reply.c
AgeCommit message (Collapse)AuthorFilesLines
2013-04-15protocol parsing: check input data stricterPatrick Valsecchi1-0/+5
... so that bad length fields aren't blindly accepted Bug: http://c-ares.haxx.se/mail/c-ares-archive-2013-04/0016.shtml
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-2/+0
Remove header inclusions already done in setup_once.h
2011-08-21ares_dns.h: adjust DNS__16BIT and DNS__32BIT macro definitionsYang Tse1-3/+3
Fixing compiler warnings existing definitions triggered on these.
2011-08-21ares_parse_srv_reply: silence compiler warningsDaniel Stenberg1-3/+3
... by adding ugly typecasts.
2010-12-18cleanup: avoid unsafe typecastsDaniel Stenberg1-3/+3
Avoid the risk of reading 16bit data from an unaligned address by using a macro that is adapted for this.
2010-03-27remove all $Id$ linesDaniel Stenberg1-1/+0
2009-11-26- Larry Lansing fixed ares_parse_srv_reply to properly parse repliesYang Tse1-11/+12
which might contain non-SRV answers, skipping over potential non-SRV ones such as CNAMEs.
2009-11-20Remove typecastYang Tse1-1/+1
2009-11-20Jakub Hrozek modified ares_parse_srv_reply() and ares_parse_txt_reply() APIYang Tse1-37/+43
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-30Add CVS Id tag.Yang Tse1-0/+2
2009-10-29no need to check for NULL pointers before dereferencing, as the pointersDaniel Stenberg1-4/+3
MUST be valid and they are dereferenced further down in the function unconditionally!
2009-10-29use 'ares_srv_reply' for proper name-spacingDaniel Stenberg1-4/+4
2009-09-06T_SRV portability checkYang Tse1-0/+5
2009-09-05changed includes to match style how we do with all other *.c files.Gunter Knauf1-9/+17
2009-09-05changed u_int16_t to unsigned short because it is the only place within ares ↵Gunter Knauf1-6/+6
and curl where such a type would be used; also it broke many autobuilds. We should probably introduce an ares_port_t if we want to use a type here.
2009-09-05Replace 'uint16_t' with 'u_int16_t' since the latter is used in ares.h.Gisle Vanem1-6/+6
2009-09-04- Jakub Hrozek added ares_parse_srv_reply() for SRV parsingDaniel Stenberg1-0/+159