9a11973403
Watt32: fix server init
...
Somewhere in the process, programs using the Watt-32 tcp/ip stack
stopped working.
2011-02-18 13:59:00 +01:00
e14f136aa3
config_sortlist: (win32) missing else
...
Without an else there, contents of "pat" that could have been
successfully set just above, may be clobbered by successive unsuccessful
calls to "xxx_pton" or "ip_addr".
2011-02-16 23:44:36 +01:00
dec9f79d0a
Makefile.msvc: add a couple of VS version strings
2011-01-17 21:06:38 +01:00
e5fe34eea6
Makefile.msvc: add a couple of VS version strings
2011-01-17 20:44:23 +01:00
5a21ba2b66
build: add install target to Makefile.msvc
2011-01-17 19:37:21 +01:00
d70721eb65
ares_set_servers_csv: remove unused variables
2010-12-27 13:19:37 +01:00
bd6636c138
init_by_resolv_conf: fix compiler warnings
...
The code received the return codes in the 'status' variable without
using it. Instead we just ignore those particular errors.
2010-12-27 13:18:54 +01:00
39d7f64361
getv4: Value stored to 'dst' is never read
2010-12-27 13:13:19 +01:00
366cd6d54d
advance_tcp_send_queue: avoid NULL ptr dereference
...
If given a too large 'num_bytes' value, it would cause a NULL ptr
dereference. Instead the code will now break out of the loop at the end
of the list.
2010-12-27 13:10:48 +01:00
766a5aaf86
configure: fix a bashism
2010-12-19 23:20:58 +01:00
2d5ed6400b
cleanup: avoid unsafe typecasts
...
Avoid the risk of reading 16bit data from an unaligned address by using
a macro that is adapted for this.
2010-12-18 22:20:16 +01:00
70b726c334
ares_expand_name: Fix encoded length for indirect root
2010-12-18 17:23:04 +01:00
a44f4c33e9
build: add some explicit file references to VS project files
2010-12-18 04:57:47 +01:00
1cfd800d4a
config-win32: provide HAVE_ASSERT_H definition
2010-12-17 18:42:59 +01:00
7a4ec5ce61
build: include ares_nowarn in sample program VS project files
2010-12-17 02:03:38 +01:00
e566cc100f
build: include ares_nowarn among SAMPLESOURCES and SAMPLEHEADERS
2010-12-16 23:09:04 +01:00
674e044ccb
configure: temporarily disable detection of system's inet_ntop()
...
This is done to allow compilation of ares_inet_ntop() by some daily
builds picky compilers that otherwise do not need this function.
2010-12-16 21:47:19 +01:00
d8c830f33e
changes: mention last fix
2010-12-16 21:34:59 +01:00
3670427a0b
ares_inet_ntop: remove definition and usage of macro SPRINTF
...
Existing definition of SPRINTF always resulted in sprintf() being used,
and sprintf() returning 'int' is already used throughout the library.
2010-12-16 21:27:56 +01:00
52f493c931
ares_inet_ntop: reapply changes from previous c-ares version (III)
...
- Replace 'u_char' with 'unsigned char'.
- Replace 'u_int' with 'unsigned int'.
- use macros ERRNO and SET_ERRNO() for errno handling.
2010-12-16 21:12:14 +01:00
2c9bdd7856
ares_inet_ntop: reapply changes from previous c-ares version (II)
...
- Remove rcsid.
- Adjust header file inclusions.
- ares_inet_ntop used only on systems without a proper inet_ntop function.
2010-12-16 20:45:34 +01:00
fd6f4dbe1e
ares_inet_ntop: reapply changes from previous c-ares version (I)
...
- Replace tabs with spaces.
- Use ANSI C style for function declarations and definitions.
- Use sizeof with parentheses.
2010-12-16 20:32:08 +01:00
0d738bab0d
ares_inet_ntop: fix off by one error triggering out of bounds write
...
ares_inet_ntop would trigger an out of bounds write when the representation
of the address required 15 characters, due to not taking in account null
termination character.
Full import of inet_ntop.c from bind-9.5.3rc1 to pull additional fixes.
2010-12-16 19:46:23 +01:00
b9959cbf36
ares_nowarn: add conditional inclusion of assert.h header
2010-12-16 18:39:31 +01:00
f5e0858d2f
fix compiler warning: conversion may lose significant bits
2010-12-16 17:18:57 +01:00
e03a65c3d9
ares_inet_net_pton: fix non-rejection of some malformed literals
...
ares_inet_net_pton would return wrong values when excessively large,
and invalid, netmasks are used. Fixes are from bind-9.5.3rc1,
issue also described in the WLB-2008080064 advisory.
2010-12-15 02:44:07 +01:00
2c26d7d254
setup_once: provide ISASCII macro
2010-12-15 02:26:51 +01:00
623f3cb531
configure: inet_net_pton function check adjustments
...
Define HAVE_INET_NET_PTON only when system's inet_net_pton function is IPv6
capable and is not affected by the WLB-2008080064 advisory.
HAVE_INET_NET_PTON_IPV6 is no longer defined nor used.
2010-12-15 02:22:04 +01:00
b2dafb6974
ares_init: fix detection of semicolon comments in resolv.conf
...
File resolv.conf may either use a hash '#' or a semicolon ';' character as an
indication that the rest of the line is a comment. This fixes not recognizing
the semicolon as a valid comment indicator in resolv.conf.
2010-12-10 21:19:51 +01:00
0b497f70e1
version: start working on 1.7.5
2010-12-10 21:04:11 +01:00
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