Yang Tse
3d84eb3bbc
ares_init.c: fix segfault triggered in ares_init_options() upon previous
...
failure of init_by_defaults() and incomplete cleanup there.
13 years ago
Yang Tse
a831da792d
fix MSVC compiler warning 'conditional expression is constant'
13 years ago
Jakub Hrozek
8e457f2c41
Fix incorrect sizeof() in ares_save_options
14 years ago
Daniel Stenberg
3cb1afe054
strlen: use size_t to receive the return
14 years ago
Yang Tse
22a52102d6
ares_init: make ares_private.h last included header again
14 years ago
Yang Tse
ef5390e6bb
winsock: compilation fixes
...
Provide winsock iphlpapi alternative definitions to prevent compilation
failures when using a variety of winsock header implementations.
14 years ago
David Stuart
6518b56a5e
IPv6-on-windows: find DNS servers correctly
14 years ago
Yang Tse
5e5c0132e6
renamed getplatform() to ares__getplatform() to avoid namespace pollution
14 years ago
Yang Tse
5b6a188909
build: move platform stuff to ares_platform.c and ares_platform.h
14 years ago
Yang Tse
bd066ab8ef
build: find out windows platform using GetVersionEx()
14 years ago
Yang Tse
8c503ddf79
System's errno.h inclusion cleanup.
...
System's errno.h is conditionally included from setup_once.h
14 years ago
Yang Tse
ef8e2ad601
ares_init: fix gethostname error detection on winsock platforms
14 years ago
Gisle Vanem
9a11973403
Watt32: fix server init
...
Somewhere in the process, programs using the Watt-32 tcp/ip stack
stopped working.
14 years ago
Dima Tisnek
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".
14 years ago
Daniel Stenberg
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.
14 years ago
Yang Tse
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.
14 years ago
Yang Tse
a1c27d5480
fix compiler warning: rounding, sign extension, or loss of accuracy may result
14 years ago
Yang Tse
41b8a1bfd0
fix compiler warning: conversion may lose significant bits
14 years ago
Yang Tse
e3f7230dc2
atoi: remove atoi usage
14 years ago
Yang Tse
0ea27cdbbf
ares_init: fix compiler warning: conversion may lose significant bits
14 years ago
Daniel Stenberg
6cc3521ec9
ares_save_options: assignments instead of memcpy
14 years ago
Daniel Stenberg
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.
14 years ago
Ben Greear
f575aea364
remove all uses of uint32_t
...
Previous fix forgot a few.
Signed-off-by: Ben Greear <greearb@candelatech.com>
15 years ago
Ben Greear
e3b04e5a47
local-bind: Support binding to local interface/IPs
...
Add 3 new functions to set the local binding for the out-going
socket connection, and add ares_set_servers_csv() to set a
list of servers at once as a comma-separated string.
Signed-off-by: Ben Greear <greearb@candelatech.com>
15 years ago
BogDan Vatra
b13c6552f8
init: allow c-ares to work on Android OS
15 years ago
Jakub Hrozek
125b1a8619
ares_init: Last, not first instance of domain or search should win
15 years ago
Daniel Stenberg
63627fa5ab
remove all $Id$ lines
15 years ago
Yang Tse
3081404dec
watt32 compilation fix
15 years ago
Yang Tse
8fe746fcf2
Added IPv6 name servers support
15 years ago
Yang Tse
10461d1414
Make usage of calloc()'s arguments consistent with rest of code base
15 years ago
Yang Tse
f157b574a9
workaround icc 9.1 optimizer issue
15 years ago
Yang Tse
ea29eeb4eb
Renamed fpGetNetworkParams and fpSystemFunction036 to avoid namespace pollution with static library
15 years ago
Yang Tse
39c0bac44c
Test for USE_WINSOCK since it is more restrictive than WIN32
15 years ago
Yang Tse
a82a8fbf82
Renamed c-ares setup.h to ares_setup.h
15 years ago
Yang Tse
ec11480d8b
Fix compiler warning: loop without body
15 years ago
Yang Tse
f3346ca16b
Fix compiler warning
15 years ago
Yang Tse
85442b2a4b
Attempt to silence bogus compiler warning: "Potential null pointer dereference"
15 years ago
Gisle Vanem
a65d11ee13
Suppress warnings about unused prototypes in Watt32 and Win32 programs.
15 years ago
Daniel Stenberg
d0a8c3b68b
- Joshua Kwan fixed the init routine to fill in the defaults for stuff that
...
fails to get inited by other means. This fixes a case of when the c-ares
init fails when internet access is fone.
16 years ago
Yang Tse
ea46b347bb
Revert last change, it is inappropriate.
16 years ago
Gisle Vanem
51a10c962a
Replace CURLDEBUG with DEBUGBUILD.
16 years ago
Yang Tse
cf3301f024
Make ares_init(), ares_dup() and ares_init_options() return ARES_ENOTINITIALIZED
...
if library initialization has not been performed calling ares_library_init().
16 years ago
Yang Tse
b7c7bab713
Introduction of ares_library_init() and ares_library_cleanup()
16 years ago
Yang Tse
27aa165e9c
avoid use of alloca()
16 years ago
Yang Tse
1509409fe1
Moved potential inclusion of system's malloc.h and memory.h header files to
...
setup_once.h. Inclusion of each header file is based on the definition of
NEED_MALLOC_H and NEED_MEMORY_H respectively.
16 years ago
Daniel Stenberg
f61fa37f40
Gregor Jasny provided the patch that introduces ares_set_socket_callback(),
...
and I edited it to also get duped by ares_dup().
16 years ago
Daniel Stenberg
e61d4b9e21
Introduce ares_dup(3) and new thoughts about API/ABI and how to move forwards.
...
Also discussed on the ml.
16 years ago
Daniel Stenberg
7ff288f0b9
minor indent fix
16 years ago
Daniel Stenberg
f31add0695
Convert the public config struct to the same binary size/construct as in the
...
latest releases to remain ABI compatible.
16 years ago
Dan Fandrich
9c51eb28fc
Make use of gethostname() conditional on it being available
16 years ago