09be3edf3a
ares_set_servers_csv: fixed IPv6 address parsing
...
Fixed bug that caused the last part of an IPv6 address to be parsed as
the port number when the last part is all numeric.
2013-05-12 15:23:43 +02:00
03e2fd085c
nroff: fix two syntax mistakes
...
ares_parse_a_reply and ares_parse_aaaa_reply both had two \fB instead of
\fP
Reported-by: Alexander Klauer
Bug: http://c-ares.haxx.se/mail/c-ares-archive-2013-03/0010.shtml
2013-05-02 23:11:13 +02:00
df55bfac79
build: fix build on msvc11
2013-05-02 22:46:48 +02:00
3f0ec4733e
Makefile.am: increment -version-info for 1.10.0 release
2013-04-23 16:44:56 +02:00
76ef032fd0
README: remove unnecessary comment
2013-04-23 00:33:24 +02:00
58a822231c
ares_version.h: copyright end range year is now 2013
2013-04-23 00:32:51 +02:00
c727dcb924
RELEASE-NOTES: synced with fb0737f3a0
2013-04-23 00:31:14 +02:00
fb0737f3a0
ares_parse_aaaa_reply: Plug memory leak
...
This change is similar to ares_parse_a_reply.c in commit
bffd67f16a
2013-04-22 23:54:40 +02:00
b5135bbc66
ares_parse_txt_reply: return a ares_txt_reply node for each sub-string
...
Previously, the function would wrongly return all substrings merged into
one.
2013-04-22 23:32:02 +02:00
9a92b80191
library init: documentation update
...
This commit updates the documentation of ares_library_init() and
ares_library_cleanup() with regard to the newly introduced reference
counting of initializations and deinitializations.
2013-04-22 23:26:01 +02:00
2e0c3076e5
library init: be recursive
...
Previously, a single call to ares_library_cleanup() would deinitialise
the c-ares library, regardless of how many times ares_library_init() was
called. This behaviour may cause problems in programs linking two or
more libraries which, in turn, use c-ares. The present commit fixes this
problem, deinitializing the library only after a number of calls to
ares_library_cleanup() matching the number of calls to
ares_library_init().
2013-04-22 23:24:50 +02:00
148c8e0353
protocol parsing: check input data stricter
...
... so that bad length fields aren't blindly accepted
Bug: http://c-ares.haxx.se/mail/c-ares-archive-2013-04/0016.shtml
2013-04-15 22:28:01 +02:00
2004a7a111
Create ares_build.h when buidling from Git.
2013-04-11 14:08:51 +02:00
c95041c6a1
Added -DCARES_STATICLIB to CFLAGS.
...
Currently this static makefile does only support building the
static library libcares.a.
2013-04-09 17:47:56 +02:00
483d49d060
.gitignore: ignore patch files
...
This commit adds a line to .gitignore to the effect that patch files
generated by 'git format-patch' are excluded from the repository.
2013-04-08 22:16:48 +02:00
1317a1c94b
ares_destroy() documentation: no new requests
...
Clarify that no new requests may be added to a resolver channel that is
currently being destroyed.
2013-04-08 22:16:48 +02:00
fa19279bba
Documentation: properly document ARES_ECANCELLED
...
This commit clarifies the behaviour of ares_cancel() with respect to
callbacks and adds missing documentation of ARES_ECANCELLED to the man
pages of the affected functions.
2013-04-08 22:16:48 +02:00
54faf09da6
ares_cancel(): cancel requests safely
...
An invocation of ares_cancel() walks through the request list, calling
the callbacks of all pending requests on a channel. Previously, if such
a callback added a new request to the channel, the request list might
not end up empty, causing an abort by assertion failure. The present
commit ensures that precisely all requests present upon entry of
ares_cancel() are cancelled, and that adding new requests through
callbacks is safe.
2013-04-08 22:16:48 +02:00
127d4cb357
ares.h: stricter CARES_EXTERN linkage decorations logic
...
No API change involved.
2013-03-10 21:28:35 +01:00
8f3f059f33
ares_build.h.dist: enhance non-configure GCC ABI detection logic
...
GCC specific adjustments:
- check __ILP32__ before 32 and 64bit processor architectures in
order to detect ILP32 programming model on 64 bit processors
which, of course, also support LP64 programming model, when using
gcc 4.7 or newer.
- keep 32bit processor architecture checks in order to support gcc
versions older than 4.7 which don't define __ILP32__
- check __LP64__ for gcc 3.3 and newer, while keeping 64bit processor
architecture checks for older versions which don't define __LP64__
2013-03-10 21:28:35 +01:00
57203b14df
ares.h: there is no ares_free_soa function
2013-03-09 16:48:28 +01:00
a2881fee6b
Makefile.am: empty AM_LDFLAGS definition for automake 1.7 compatibility
2013-03-09 13:58:35 +01:00
60cad73007
ares_inet_ntop.3: s/socklen_t/ares_socklen_t
2013-03-08 14:13:21 +01:00
715b499c79
configure: use XC_LIBTOOL for portability across libtool versions
2013-03-08 13:22:33 +01:00
f454e82dc7
xc-lt-iface.m4: provide XC_LIBTOOL macro
2013-03-08 13:22:31 +01:00
320c4eb659
Makefile.am: use AM_CPPFLAGS instead of INCLUDES
2013-02-19 14:14:09 +01:00
9ed49f3e17
inet_ntop.c: s/socklen_t/ares_socklen_t
2013-02-19 13:54:28 +01:00
b82874ad6f
inet_ntop.c: s/socklen_t/ares_socklen_t for portability
2013-02-19 13:27:33 +01:00
ecf6f65b43
ares.h: s/socklen_t/ares_socklen_t for portability
2013-02-19 13:00:36 +01:00
f4dce2e9f0
ares_inet_ntop.3: 4th argument is socklen_t!
2013-02-17 19:18:54 +01:00
07bbbd85c3
spell inet correctly!
2013-02-17 17:51:37 +01:00
cf7ad9758d
ares_inet_pton/ntop: cleanup
...
Make sure that the symbols are always exported and present in c-ares.
Make the headers prefixed with 'ares'.
Removed the inet_ntop.h version as it no longer features any content.
2013-02-17 17:44:02 +01:00
ee9a1c2457
ares_inet_ntop/ares_inet_pton: added man pages
2013-02-17 17:44:02 +01:00
8d013420a0
curl_setup_once.h: definition of HAVE_CLOSE_S defines sclose() to close_s()
2013-02-15 02:36:20 +01:00
c28e6d98db
config-dos.h: define HAVE_CLOSE_S for MSDOS/Watt-32
2013-02-15 02:36:19 +01:00
e9bca998f9
config-dos.h: define strerror() to strerror_s_() for High-C
2013-02-15 02:36:11 +01:00
050663271e
ares_get_datatype: removed unused function
...
it was also wrongly named as internal functions require two underscores
2013-02-13 14:58:04 +01:00
2a3a63ae1f
ares__bitncmp: use two underscores for private functions
...
It used a single one previously making it look like a public one
2013-02-13 14:58:04 +01:00
9c03cc118c
ares__generate_new_id: moved to ares_query.c
...
... and ares__rc4 is turned into a local static function.
2013-02-13 14:58:04 +01:00
3217c7eef2
ares__swap_lists: make private and static
...
... since there's only one user, make it static within ares_process.c
2013-02-13 14:58:04 +01:00
be6e6984b5
Makefile.msvc: add four VS version strings
2013-02-13 13:03:44 +01:00
df72bed2e3
ares_expand_name.3: clarify how to free the data
2013-02-13 11:01:50 +01:00
75a8407985
zz40-xc-ovr.m4: fix 'wc' detection - follow-up 2
...
- Fix a pair of single quotes to double quotes.
URL: http://curl.haxx.se/mail/lib-2013-01/0355.html
Reported by: Tor Arntsen
2013-01-30 16:58:46 +01:00
b6dd41b6ef
zz40-xc-ovr.m4: fix 'wc' detection - follow-up
...
- Take into account that 'wc' may return leading spaces and/or tabs.
- Set initial IFS to space, tab and newline.
2013-01-30 15:46:50 +01:00
422717ba6f
zz40-xc-ovr.m4: fix 'wc' detection
...
- Take into account that 'wc' may return leading spaces.
- Set internationalization behavior variables.
Tor Arntsen analyzed and reported the issue.
URL: http://curl.haxx.se/mail/lib-2013-01/0351.html
2013-01-30 12:25:53 +01:00
e03b5288ec
zz40-xc-ovr.m4: check another three basic utilities
2013-01-29 20:49:16 +01:00
ddc7ab6713
zz40-xc-ovr.m4: 1.0 interface stabilization
...
- Stabilization results in 4 public interface m4 macros:
XC_CONFIGURE_PREAMBLE
XC_CONFIGURE_PREAMBLE_VER_MAJOR
XC_CONFIGURE_PREAMBLE_VER_MINOR
XC_CHECK_PATH_SEPARATOR
- Avoid one level of internal indirection
- Update comments
- Drop XC_OVR_ZZ40 macro
2013-01-28 21:28:42 +01:00
18b7d9a9f4
zz40-xc-ovr.m4: emit witness message in configure BODY
...
This avoids witness message in output when running configure --help,
while sending the message to config.log for other configure runs.
2013-01-26 03:49:30 +01:00
e916c68de7
zz40-xc-ovr.m4: truly do version conditional overriding
...
- version conditional overriding
- catch unexpanded XC macros
- fix double words in comments
2013-01-25 19:20:28 +01:00
0110c7f6ee
zz40-xc-ovr.m4: fix variable assignment of subshell output bashism
...
Tor Arntsen analyzed and reported the issue.
URL: http://curl.haxx.se/mail/lib-2013-01/0306.html
2013-01-25 14:22:43 +01:00