From 05b26e7566b9788fcdecda3c49e0b0ca1f7d25ec Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 22 Sep 2007 20:45:50 +0000 Subject: Brad House provided a fix for ares_save_options(): Apparently I overlooked something with the ares_save_options() where it would try to do a malloc(0) when no options of that type needed to be saved. On most platforms, this was fine because malloc(0) doesn't actually return NULL, but on AIX it does, so ares_save_options would return ARES_ENOMEM. --- ares/CHANGES | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'ares/CHANGES') diff --git a/ares/CHANGES b/ares/CHANGES index 86d46ed44..160489c64 100644 --- a/ares/CHANGES +++ b/ares/CHANGES @@ -1,9 +1,17 @@ Changelog for the c-ares project +* September 22 2007 (Daniel Stenberg) + +- Brad House provided a fix for ares_save_options(): + + Apparently I overlooked something with the ares_save_options() where it + would try to do a malloc(0) when no options of that type needed to be saved. + On most platforms, this was fine because malloc(0) doesn't actually return + NULL, but on AIX it does, so ares_save_options would return ARES_ENOMEM. + * July 14 2007 (Daniel Stenberg) - Vlad Dinulescu fixed two outstanding valgrind reports: - 1. In ares_query.c , in find_query_by_id we compare q->qid (which is a short int variable) with qid, which is declared as an int variable. Moreover, -- cgit v1.2.3