1
0
mirror of https://frontier.innolan.net/rainlance/c-ares.git synced 2025-12-08 06:04:36 +00:00
Commit Graph

1288 Commits

Author SHA1 Message Date
b354607aed release-preps: CHANGES and RELEASE-NOTES synced cares-1_7_4 2010-12-08 15:19:13 +01:00
0ae8dbb22d ares_set_local_*: added in 1.7.4, not before 2010-12-08 15:17:15 +01:00
4d061e6b23 build: provide SIZEOF_SIZE_T definition for non-configure builds 2010-12-03 04:41:16 +01:00
09331032a0 build: config.dos renamed to config-dos.h 2010-12-03 04:35:05 +01:00
a04dbb4323 build: provide SIZEOF_SIZE_T netware definition 2010-12-02 20:53:12 +01:00
fb4df6febc ares_gethostbyaddr: fix compiler warning: conversion may lose significant bits 2010-12-02 19:45:00 +01:00
618e34bcf6 configure: undo using autobuilds to temporarily verify strict aliasing warnings. 2010-12-02 19:08:46 +01:00
a1c27d5480 fix compiler warning: rounding, sign extension, or loss of accuracy may result 2010-12-02 18:49:15 +01:00
2c63440127 ares_parse_a_reply: fix CNAME response parsing
Reply to a CNAME query doesn't contain addresses, causing
ares_parse_a_reply() to bail out with ARES_ENODATA

Bug: http://groups.google.com/group/nodejs/browse_thread/thread/a1268c9ea5e9ad9b
2010-12-02 10:48:50 +01:00
41b8a1bfd0 fix compiler warning: conversion may lose significant bits 2010-12-01 23:36:19 +01:00
e3f7230dc2 atoi: remove atoi usage 2010-11-29 02:22:08 +01:00
0ea27cdbbf ares_init: fix compiler warning: conversion may lose significant bits 2010-11-28 20:56:17 +01:00
e3813e6d24 configure: fix autoconf warning 2010-11-25 03:07:29 +01:00
e9e8b6e864 inet_pton: fix compiler warning 2010-11-25 02:19:36 +01:00
4d44b54c75 configure: use autobuilds to temporarily verify strict aliasing warnings.
Temporarily, When cross-compiling with gcc 3.0 or later, enable strict aliasing
rules and warnings. Given that cross-compiled targets autobuilds do not run the
test-suite, there is no risk of running code that violates strict aliasing rules
2010-11-18 17:11:38 +01:00
461fa89e0a ares_getnameinfo: Partially revert commit 85520d66e0
Upon socket address family and length validation failure return ARES_ENOTIMP
in callback again, this is the error code documented in man page and used
mostly all over the library.
2010-11-16 20:15:55 +01:00
85520d66e0 ares_getnameinfo: Validate socket address family and length.
Validate socket address family and that the socket address length is appropriate
for the specified family. Failure is reported with ARES_EBADFAMILY in callback.
2010-11-16 19:41:03 +01:00
690f9a726c ares_getnameinfo: fix two compiler warnings 2010-11-16 19:08:07 +01:00
137a440a36 Added another VS10 version string 2010-11-16 03:33:54 +01:00
10ae9e4ec2 Fix GCC 4 compiler warning 'dereferencing type-punned pointer might break strict-aliasing rules'. 2010-11-14 04:42:10 +01:00
4ab5eb6631 Revert commit 494274e653 2010-11-13 14:06:44 +01:00
0b504d7065 configure: fix autoconf 2.68 warning: no AC_LANG_SOURCE call detected in body 2010-11-13 04:15:16 +01:00
dac69d52c2 Fix compiler warning: array subscript has type 'char' 2010-11-12 19:46:13 +01:00
494274e653 Fix GCC 4 compiler warning 'dereferencing type-punned pointer might break strict-aliasing rules'. 2010-11-12 19:00:29 +01:00
747981be8e Revert following commits:
07bc7ea795
  3392a50ea3
  9912637d32

The purpose of the whole patch was to silence a compiler warning triggered
with GCC 4 on file ares_process.c  The specific compiler warning was
'dereferencing type-punned pointer might break strict-aliasing rules'.

A simpler patch will follow to equally silence the warning.
2010-11-12 18:53:58 +01:00
b8044334f0 ares_options: reorder header inclusions to make inclusion of
ares_private.h the last included one again.
2010-11-12 16:34:34 +01:00
e9386cfd9f adig: fix NAPTR parsing
I ran across a small "issue" in your adig example.

It is simply the last part of the NAPTR record, the replacement element,
which is not a string, as currently handled in adig, but a domain name.
2010-11-12 14:09:00 +01:00
6cc3521ec9 ares_save_options: assignments instead of memcpy 2010-10-05 19:42:39 +02:00
803e2a28b7 init_by_options: don't copy an empty sortlist
If there aren't any sort items to copy, don't bother. Without this
little precaution it would do a malloc(0) which causes undefined
behaviors and is frowned upon by curl's memdebug-system.
2010-10-05 19:40:35 +02:00
679c1032cb Minor Watcom makefile tweaks. 2010-10-03 22:56:12 +02:00
fa0dd472cd Fix lookup with HOSTALIASES set.
ares__read_line returns ARES_EOF when it reaches the end of the
file. This will happen every time when reading to the end of the
HOSTALIASES file. Unfortunately single_domain treats this error as
being fatal.

Signed-off-by: Mike Crowe <mac@mcrowe.com>
2010-09-30 00:23:08 +02:00
293cd31700 Add missing break that caused get_ares_servers to fail.
Reported-by: Ning Dong <flintning@163.com>
Signed-off-by: Ben Greear <greearb@candelatech.com>
2010-08-24 16:52:29 -07:00
e43e69718f configure: werror related adjustments 2010-08-11 14:08:18 +02:00
5e7a4dc5d7 Added copyright string to ares_version.h and make use of it in other files. 2010-08-08 11:18:38 +02:00
e6b38cdbd2 Block created ares_build.h for NetWare to avoid usage from other platforms. 2010-08-08 10:26:04 +02:00
d8ed817b99 Fix to overwrite default libname. 2010-08-07 18:35:47 +02:00
b33f331a4f Some more Watcom makefile massage ... 2010-08-06 03:53:03 +02:00
17d4e513d4 Some more Watcom makefile massage ... 2010-08-06 03:48:25 +02:00
9912637d32 sock-addr-storage: Detect and deal with lack of .ss_family member.
AIX, at least, does not have sockaddr_storage.ss_family member.
Detect this in the configure logic and use proper #ifdefs in the
ares_process logic.

Signed-off-by: Ben Greear <greearb@candelatech.com>
Tested-by: Tor Arntsen <tor@spacetec.no>
2010-08-04 07:42:01 -07:00
a00e234001 Added Watcom makefile based on libcurl's Makefile.Watcom. 2010-08-03 01:21:56 +02:00
3392a50ea3 typo: Fix compile bug for platforms that don't have sockaddr_storage.
Bug was introduced by me in previous commit.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2010-07-31 12:21:08 -07:00
07bc7ea795 Fix aliasing warning in gcc 4.4.4 (at least).
Should be no functional change, though the code gets a bit
ugglier.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2010-07-31 07:11:27 -07:00
cef3a4c7aa ares_set_servers_csv: use ISDIGIT
The IS*() set of macros are preferred to the regular is*() functions as
they help us avoid the most common pitfalls.
2010-07-31 00:16:39 +02:00
8d33804971 cast arg to isdigit to int
Looks like it might silence a warning on Netware build.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2010-07-30 15:11:54 -07:00
f575aea364 remove all uses of uint32_t
Previous fix forgot a few.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2010-07-30 10:09:57 -07:00
03c1378e84 fix signed v/s unsigned casts warning in ares_gethostbyaddr.c
Signed-off-by: Ben Greear <greearb@candelatech.com>
2010-07-30 09:30:49 -07:00
1ac83339e3 local-bind-fixup: Fix inet_pton warning.
Conditionally include <arpa/inet.h> for inet_pton
headers.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2010-07-30 00:10:16 -07:00
45557a138e build: Enable compiling with -Werror.
This helps find compile warnings because they simply break
the build.

To use:
./configure --enable-warnings --enable-werror

Signed-off-by: Ben Greear <greearb@candelatech.com>
2010-07-29 23:43:02 -07:00
3e33e2c2ba ipv6: Fix some build issues related to the local-bind feature.
Signed-off-by: Ben Greear <greearb@candelatech.com>
2010-07-29 22:31:56 -07:00
28ff9336d5 Replaced uint32_t with unsigned int to fix broken builds on a couple of platforms. 2010-07-29 23:27:46 +02:00