In no particular order, changed/fixed all of the following in
authorYang Tse <yangsita@gmail.com>
Fri, 30 Oct 2009 16:21:56 +0000 (16:21 +0000)
committerYang Tse <yangsita@gmail.com>
Fri, 30 Oct 2009 16:21:56 +0000 (16:21 +0000)
commitd4ff44d5f6e41a8ea82210091165670ac9898d47
tree9ea295536dc646358f2dc4502c403b7f15875a20
parentfff706d702c764922e1cee4d67edbb55bb0b3e89
In no particular order, changed/fixed all of the following in
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.
ares/Makefile.inc
ares/ares.h
ares/ares_parse_txt_reply.c