curl/lib
Antonio Larrosa ae8f662072 connect: fix invalid "Network is unreachable" errors
Sometimes, in systems with both ipv4 and ipv6 addresses but where the
network doesn't support ipv6, Curl_is_connected returns an error
(intermittently) even if the ipv4 socket connects successfully.

This happens because there's a for-loop that iterates on the sockets but
the error variable is not resetted when the ipv4 is checked and is ok.

This patch fixes this problem by setting error to 0 when checking the
second socket and not having a result yet.

Fixes #794
2016-05-08 14:29:26 +02:00
..
vauth URLs: change http to https in many places 2016-04-06 11:58:34 +02:00
vtls tls: make setting pinnedkey option fail if not supported 2016-05-01 17:05:38 +02:00
.gitignore
amigaos.c code: style updates 2016-04-03 22:38:36 +02:00
amigaos.h
arpa_telnet.h
asyn-ares.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
asyn-thread.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
asyn.h
base64.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
checksrc.pl checksrc: taught to skip comments 2016-04-19 08:52:22 +02:00
CMakeLists.txt
config-amigaos.h
config-dos.h
config-mac.h
config-os400.h
config-riscos.h
config-symbian.h
config-tpf.h
config-vxworks.h
config-win32.h
config-win32ce.h
conncache.c connections: non-HTTP proxies on different ports aren't reused either 2016-05-03 08:18:15 +02:00
conncache.h
connect.c connect: fix invalid "Network is unreachable" errors 2016-05-08 14:29:26 +02:00
connect.h
content_encoding.c
content_encoding.h
cookie.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
cookie.h
curl_addrinfo.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
curl_addrinfo.h
curl_base64.h
curl_config.h.cmake
curl_des.c
curl_des.h
curl_endian.c
curl_endian.h
curl_fnmatch.c memdebug: Ensure curl/curl.h is included before curl_memory.h 2016-04-01 13:21:12 +01:00
curl_fnmatch.h
curl_gethostname.c
curl_gethostname.h
curl_gssapi.c GSS: make Curl_gss_log_error more verbose 2016-03-29 16:51:29 +02:00
curl_gssapi.h GSS: make Curl_gss_log_error more verbose 2016-03-29 16:51:29 +02:00
curl_hmac.h
curl_ldap.h
curl_md4.h
curl_md5.h
curl_memory.h includes: avoid duplicate memory callback typdefs even harder 2016-04-18 15:04:17 +02:00
curl_memrchr.c memdebug: Ensure curl/curl.h is included before curl_memory.h 2016-04-01 13:21:12 +01:00
curl_memrchr.h
curl_multibyte.c
curl_multibyte.h
curl_ntlm_core.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
curl_ntlm_core.h
curl_ntlm_wb.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
curl_ntlm_wb.h
curl_printf.h
curl_rtmp.c
curl_rtmp.h
curl_sasl.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
curl_sasl.h vauth: Moved the NTLM authentication code to the new vauth directory 2016-03-25 15:11:09 +00:00
curl_sec.h
curl_setup_once.h
curl_setup.h sendf.c: added ability to call recv() before send() as workaround 2016-04-20 09:22:48 +02:00
curl_sspi.c
curl_sspi.h
curl_threads.c memdebug: Ensure curl/curl.h is included before curl_memory.h 2016-04-01 13:21:12 +01:00
curl_threads.h
curlx.h
dict.c
dict.h
dotdot.c memdebug: Ensure curl/curl.h is included before curl_memory.h 2016-04-01 13:21:12 +01:00
dotdot.h
easy.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
easyif.h
escape.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
escape.h
file.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
file.h
fileinfo.c
fileinfo.h
firefox-db2pem.sh
formdata.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
formdata.h code: style updates 2016-04-03 22:38:36 +02:00
ftp.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
ftp.h
ftplistparser.c
ftplistparser.h
getenv.c
getinfo.c mbedtls: Fix session resume 2016-04-28 02:57:38 -04:00
getinfo.h
gopher.c
gopher.h
hash.c memdebug: Ensure curl/curl.h is included before curl_memory.h 2016-04-01 13:21:12 +01:00
hash.h
hmac.c memdebug: Ensure curl/curl.h is included before curl_memory.h 2016-04-01 13:21:12 +01:00
hostasyn.c
hostcheck.c
hostcheck.h
hostip4.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
hostip6.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
hostip.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
hostip.h
hostsyn.c
http2.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
http2.h http2: Add Curl_http2_strerror for HTTP/2 error codes 2016-04-11 21:43:31 -04:00
http_chunks.c http_chunks: removed checksrc disable 2016-04-19 08:53:31 +02:00
http_chunks.h
http_digest.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
http_digest.h
http_negotiate.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
http_negotiate.h vauth: Moved the Negotiate authentication code to the new vauth directory 2016-03-26 17:21:22 +00:00
http_ntlm.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
http_ntlm.h http_ntlm: Renamed from curl_ntlm.[c|h] 2016-03-27 17:58:50 +01:00
http_proxy.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
http_proxy.h
http.c http: make sure a blank header overrides accept_decoding 2016-05-02 11:24:11 +02:00
http.h http2: Use size_t type for data drain count 2016-04-12 00:37:44 -04:00
idn_win32.c
if2ip.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
if2ip.h
imap.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
imap.h
inet_ntop.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
inet_ntop.h
inet_pton.c
inet_pton.h
krb5.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
ldap.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
libcurl.def
libcurl.plist
libcurl.rc
libcurl.vers.in
llist.c memdebug: Ensure curl/curl.h is included before curl_memory.h 2016-04-01 13:21:12 +01:00
llist.h
Makefile.am lib/checksrc.whitelist: not needed anymore 2016-04-19 08:56:05 +02:00
makefile.amiga
Makefile.b32 build: Updated all makefiles and project files for the new vauth directory 2016-03-25 09:11:59 +00:00
makefile.dj
Makefile.inc http_ntlm: Renamed from curl_ntlm.[c|h] 2016-03-27 17:58:50 +01:00
Makefile.m32
Makefile.netware build: Updated all makefiles and project files for the new vauth directory 2016-03-25 09:11:59 +00:00
Makefile.vc6 http_ntlm: Renamed from curl_ntlm.[c|h] 2016-03-27 17:58:50 +01:00
Makefile.vxworks
Makefile.Watcom build: Updated all makefiles and project files for the new vauth directory 2016-03-25 09:11:59 +00:00
md4.c
md5.c memdebug: Ensure curl/curl.h is included before curl_memory.h 2016-04-01 13:21:12 +01:00
memdebug.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
memdebug.h memdebug.h: remove inclusion of other headers 2016-04-29 15:33:46 +02:00
mk-ca-bundle.pl
mk-ca-bundle.vbs
mprintf.c curl/mprintf.h: remove support for _MPRINTF_REPLACE 2016-04-01 10:46:36 +02:00
multi.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
multihandle.h
multiif.h
netrc.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
netrc.h
non-ascii.c
non-ascii.h
nonblock.c
nonblock.h
nwlib.c nw: please the stricter checksrc 2016-04-03 23:07:30 +02:00
nwos.c nw: please the stricter checksrc 2016-04-03 23:07:30 +02:00
objnames-test08.sh
objnames-test10.sh
objnames.inc
openldap.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
parsedate.c
parsedate.h
pingpong.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
pingpong.h
pipeline.c
pipeline.h
pop3.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
pop3.h
progress.c
progress.h
rawstr.c
rawstr.h
rtsp.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
rtsp.h
security.c
select.c
select.h
sendf.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
sendf.h
setup-os400.h
setup-vms.h
share.c code: style updates 2016-04-03 22:38:36 +02:00
share.h
sigpipe.h
slist.c memdebug: Ensure curl/curl.h is included before curl_memory.h 2016-04-01 13:21:12 +01:00
slist.h
smb.c
smb.h
smtp.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
smtp.h
sockaddr.h
socks_gssapi.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
socks_sspi.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
socks.c code: style updates 2016-04-03 22:38:36 +02:00
socks.h
speedcheck.c
speedcheck.h
splay.c
splay.h code: style updates 2016-04-03 22:38:36 +02:00
ssh.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
ssh.h SSH: new CURLOPT_QUOTE command "statvfs" 2016-03-27 17:52:16 +02:00
strdup.c memdebug: Ensure curl/curl.h is included before curl_memory.h 2016-04-01 13:21:12 +01:00
strdup.h
strequal.c
strequal.h
strerror.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
strerror.h
strtok.c
strtok.h
strtoofft.c
strtoofft.h
telnet.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
telnet.h
tftp.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
tftp.h
timeval.c
timeval.h
transfer.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
transfer.h multi: multi_reconnect_request is the former Curl_reconnect_request 2016-03-30 07:52:28 +02:00
url.c connections: non-HTTP proxies on different ports aren't reused either 2016-05-03 08:18:15 +02:00
url.h CURLOPT_SOCKS5_GSSAPI_SERVICE: Merged with CURLOPT_PROXY_SERVICE_NAME 2016-04-09 20:47:05 +01:00
urldata.h mbedtls: Fix session resume 2016-04-28 02:57:38 -04:00
version.c
warnless.c warnless?: Added some integer based conversion functions 2016-03-26 11:09:01 +00:00
warnless.h warnless.h: Removed spurious character from commit 696bc6b9c9 2016-03-26 11:35:07 +00:00
wildcard.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
wildcard.h
x509asn1.c lib: include curl_printf.h as one of the last headers 2016-04-29 22:32:49 +02:00
x509asn1.h