Marc Hoersken [Fri, 14 Sep 2012 06:12:07 +0000 (08:12 +0200)]
socks.c: Check that IPv6 is enabled before using it's features
Marc Hoersken [Thu, 13 Sep 2012 22:44:16 +0000 (00:44 +0200)]
checksrc: Fixed line length and comment indentation
Marc Hoersken [Mon, 10 Sep 2012 10:46:25 +0000 (12:46 +0200)]
socks.c: Updated error messages to handle hostname and IPv6
Marc Hoersken [Mon, 10 Sep 2012 10:44:37 +0000 (12:44 +0200)]
socks.c: Added support for IPv6 connections through SOCKSv5 proxy
Daniel Stenberg [Thu, 13 Sep 2012 20:57:38 +0000 (22:57 +0200)]
parse_proxy: treat "socks://x" as a socks4 proxy
Selected socks proxy in Google's Chrome browser. Resulting in the
following environment variables:
NO_PROXY=localhost,127.0.0.0/8
ALL_PROXY=socks://localhost:1080/
all_proxy=socks://localhost:1080/
no_proxy=localhost,127.0.0.0/8
... and libcurl didn't treat 'socks://' as socks but instead picked HTTP
proxy.
Reported by: Scott Bailey
Bug: http://curl.haxx.se/bug/view.cgi?id=
3566860
Kamil Dudka [Wed, 12 Sep 2012 14:18:36 +0000 (16:18 +0200)]
ssh: do not crash if MD5 fingerprint is not provided by libssh2
The MD5 fingerprint cannot be computed when running in FIPS mode.
Kamil Dudka [Wed, 12 Sep 2012 14:06:18 +0000 (16:06 +0200)]
ssh: move the fingerprint checking code to a separate fnc
Marc Hoersken [Tue, 11 Sep 2012 22:09:23 +0000 (00:09 +0200)]
tool_metalink.c: Added name of validation hash to messages
This makes it easier to debug broken hashes or hash functions.
Marc Hoersken [Tue, 11 Sep 2012 12:35:18 +0000 (14:35 +0200)]
wincrypt: Fixed cross-compilation issues caused by include name
For some reason WinCrypt.h is named wincrypt.h under MinGW.
Marc Hoersken [Tue, 11 Sep 2012 12:12:41 +0000 (14:12 +0200)]
md5.c: Added support for Microsoft Windows CryptoAPI
Marc Hoersken [Mon, 10 Sep 2012 23:59:41 +0000 (01:59 +0200)]
Makefile.m32: Updated to build against libmetalink 0.1.2
The include and library path were moved within libmetalink, this
patch adjusts the defaults provided within the curl MinGW makefile.
Marc Hoersken [Mon, 10 Sep 2012 23:58:10 +0000 (01:58 +0200)]
tool_metalink.c: Added support for Microsoft Windows CryptoAPI
Since Metalink support requires a crypto library for hash functions
and Windows comes with the builtin CryptoAPI, this patch adds that
API as a fallback to the supported crypto libraries.
It is automatically used on Windows if no other library is provided.
Marc Hoersken [Tue, 11 Sep 2012 10:58:08 +0000 (12:58 +0200)]
libntlmconnect.c: Fixed typo and conversion
Marc Hoersken [Tue, 11 Sep 2012 10:19:05 +0000 (12:19 +0200)]
libntlmconnect.c: Fixed warning: curl_easy_getinfo expects long pointer
Fixed tests/libtest/libntlmconnect.c:52: warning: call to
'_curl_easy_getinfo_err_long' declared with attribute warning:
curl_easy_getinfo expects a pointer to long for this info
Marc Hoersken [Tue, 11 Sep 2012 09:48:27 +0000 (11:48 +0200)]
sws.c: Fixed warning: 'err' may be used uninitialized in this function
Marc Hoersken [Tue, 11 Sep 2012 09:02:09 +0000 (11:02 +0200)]
libntlmconnect.c: Fixed warning: comparison of signed/unsigned integer
Windows does not use -1 to represent invalid sockets and the
SOCKET type is unsigned.
Marc Hoersken [Tue, 11 Sep 2012 07:49:23 +0000 (09:49 +0200)]
nss.c: Fixed warning: 'err' may be used uninitialized in this function
Marc Hoersken [Tue, 11 Sep 2012 06:20:43 +0000 (08:20 +0200)]
tool_metalink.c: Fixed error: 'O_BINARY' undeclared
Check for O_BINARY which is not available on every system.
Marc Hoersken [Mon, 10 Sep 2012 23:42:58 +0000 (01:42 +0200)]
tool_metalink.c: Fixed validation of binary files containing EOF
Since Windows/MinGW threat 0x1A as the EOF character, reading binary
files which contain that byte does not work using text mode.
The read function will only read until the first 0x1A byte. This
means that the hash is not computed from the whole file and the
final validation check using hash comparision fails.
Marc Hoersken [Mon, 10 Sep 2012 20:03:56 +0000 (22:03 +0200)]
winbuild: Added support for building with SPNEGO enabled
Since Simple and Protected GSSAPI Negotiation Mechanism
is already implemented in curl and supported by the MinGW
builds, this change adds build support to winbuild makefiles.
Marc Hoersken [Mon, 10 Sep 2012 19:56:39 +0000 (21:56 +0200)]
winbuild: Adjusted order of options to generated config name
Cleaned up order of handled build options by ordering them
nearly alphabetically by using the order of the generated
config name. Preparation for future/more build options.
Anthony Bryan [Sun, 9 Sep 2012 21:08:59 +0000 (23:08 +0200)]
MANUAL: clarified user+password in HTTP URLs
Daniel Stenberg [Sun, 9 Sep 2012 12:55:52 +0000 (14:55 +0200)]
RELEASE-NOTES: synced with
6c6f1f64c2
6 bug fixes to mention, 5 contributors
Daniel Stenberg [Sun, 9 Sep 2012 12:50:21 +0000 (14:50 +0200)]
TODO-RELEASE: CURLSSH_AUTH_AGENT and curl_multi_wait() are done
-321 - CURLSSH_AUTH_AGENT patch by Armel Asselin
-324 - curl_multi_select() vs curl_multi_fdvec() etc
Marc Hoersken [Sun, 9 Sep 2012 10:36:54 +0000 (12:36 +0200)]
curl_schannel.c: Reference count the credential/session handle
Reference counting the credential handle should avoid that such a
handle is freed while it is still required for connection shutdown
Nick Zitzmann [Sat, 8 Sep 2012 02:01:08 +0000 (20:01 -0600)]
darwinssl: fixed for older Mac OS X versions
SSL didn't work on older cats if built on a newer cat with weak-linking
turned on to support the older cat
David Blaikie [Thu, 6 Sep 2012 19:00:26 +0000 (21:00 +0200)]
tool_easysrc.c: Test pointers against NULL
While validating a new Clang diagnostic (-Wnon-literal-null-conversion -
yes, the name isn't quite correct in this case, but it suffices) I found
a few violations of it in Curl.
Daniel Stenberg [Thu, 6 Sep 2012 18:51:30 +0000 (20:51 +0200)]
SOCKS: truly disable it if CURL_DISABLE_PROXY is defined
Bug: http://curl.haxx.se/bug/view.cgi?id=
3561305
Patch by: Marcel Raad
Daniel Stenberg [Tue, 4 Sep 2012 21:21:15 +0000 (23:21 +0200)]
mk-ca-bundle: detect start of trust section better
Each certificate section of the input certdata.txt file has a trust
section following it with details.
This script failed to detect the start of the trust for at least one
cert[*], which made the script continue pass that section into the next
one where it found an 'untrusted' marker and as a result that certficate
was not included in the output.
[*] = "Hellenic Academic and Research Institutions RootCA 2011"
Bug: http://curl.haxx.se/mail/lib-2012-09/0019.html
Alessandro Ghedini [Mon, 20 Aug 2012 14:47:48 +0000 (16:47 +0200)]
gnutls: do not fail on non-fatal handshake errors
Bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=685402
Daniel Stenberg [Tue, 4 Sep 2012 17:41:09 +0000 (19:41 +0200)]
FILEFORMAT: the FTP commands work for more protocols
Daniel Stenberg [Tue, 4 Sep 2012 17:40:46 +0000 (19:40 +0200)]
test1411: verify SMTP without SIZE support
František Kučera [Sun, 2 Sep 2012 08:53:27 +0000 (10:53 +0200)]
SMTP: only send SIZE if supported
SMTP client will send SIZE parameter in MAIL FROM command only if server
supports it. Without this patch server might say "504 Command parameter
not implemented" and reject the message.
Bug: http://curl.haxx.se/bug/view.cgi?id=
3564114
Daniel Stenberg [Tue, 4 Sep 2012 14:50:31 +0000 (16:50 +0200)]
ftpserver: respond with a 250 to SMTP EHLO
... and specify that SIZE is supported. 250 is the "correct" response
code according to RFC 2821
Daniel Stenberg [Mon, 3 Sep 2012 21:20:33 +0000 (23:20 +0200)]
RELEASE-NOTES: synced with
abb0da919300e
Dan Fandrich [Mon, 3 Sep 2012 20:50:12 +0000 (22:50 +0200)]
Updated Symbian build files
This is untested, but at least Symbian still has a chance of
still working now.
Dan Fandrich [Mon, 3 Sep 2012 20:35:46 +0000 (22:35 +0200)]
Updated build docs w.r.t. Android and binary sizes
Daniel Stenberg [Sat, 1 Sep 2012 21:53:15 +0000 (23:53 +0200)]
symbols-in-versions: new CURL_WAIT_* symbols
Sara Golemon [Sat, 1 Sep 2012 21:27:11 +0000 (23:27 +0200)]
Unit test for curl_multi_wait()
Sara Golemon [Mon, 27 Aug 2012 20:06:28 +0000 (13:06 -0700)]
Manpage for curl_multi_wait().
Sara Golemon [Mon, 27 Aug 2012 19:48:55 +0000 (12:48 -0700)]
multi: add curl_multi_wait()
/*
* Name: curl_multi_wait()
*
* Desc: Poll on all fds within a CURLM set as well as any
* additional fds passed to the function.
*
* Returns: CURLMcode type, general multi error code.
*/
CURL_EXTERN CURLMcode curl_multi_wait(CURLM *multi_handle,
struct curl_waitfd extra_fds[],
unsigned int extra_nfds,
int timeout_ms);
Nick Zitzmann [Tue, 21 Aug 2012 02:22:51 +0000 (20:22 -0600)]
darwinssl: Bugfix for previous commit for older cats
I accidentally broke functionality for versions of OS X prior to Mountain
Lion in the previous commit. This commit fixes the problems.
Joe Mason [Fri, 31 Aug 2012 23:11:17 +0000 (19:11 -0400)]
Use MAX_EASY_HANDLES instead of hardcoding the number of handles twice
Daniel Stenberg [Fri, 31 Aug 2012 21:23:40 +0000 (23:23 +0200)]
test2032: bail out after last transfer
The test would hang and get aborted with a "ABORTING TEST, since it
seems that it would have run forever." until I prevented that from
happening.
I also fixed the data file which got broken CRLF line endings when I
sucked down the path from Joe's repo == my fault.
Removed #37 from KNOWN_BUGS as this fix and test case verifies exactly
this.
Joe Mason [Mon, 20 Aug 2012 21:00:40 +0000 (17:00 -0400)]
NTLM: re-use existing connection better
If we need an NTLM connection and one already exists, always choose that
one.
Joe Mason [Wed, 8 Aug 2012 22:15:04 +0000 (18:15 -0400)]
NTLM: verify multiple connections work
Add test2032 to test that NTLM does not switch connections in the middle
of the handshake
Daniel Stenberg [Tue, 28 Aug 2012 08:43:12 +0000 (10:43 +0200)]
curl.1: list the -w variables sorted alphabetically
Daniel Stenberg [Mon, 27 Aug 2012 21:49:08 +0000 (23:49 +0200)]
libcurl-share.3: remove wrong info of what can be shared
"Currently you can only share DNS and/or COOKIE data" is incorrect since
also SSL sessions can be shared.
Bug: http://curl.haxx.se/bug/view.cgi?id=
3562261
Reported by: Joe Mason
Dave Reisner [Mon, 23 Jul 2012 15:34:25 +0000 (15:34 +0000)]
examples: use do/while loop for multi examples
It's conceivable that after the first time curl_multi_perform returns,
the outvalue still_running will be 0, but work will have been done. This
is shown by a workload of small, purely file:// based URLs. Ensure that
we always read pending messages off the multi handle by forcing the
while loop to run at least once.
Daniel Stenberg [Mon, 27 Aug 2012 12:50:53 +0000 (14:50 +0200)]
curl.h: fix comment to refer to current names
CURLOPT_USE_SSL should be set to CURLUSESSL_* and nothing else in modern
libcurl versions.
Daniel Stenberg [Mon, 27 Aug 2012 12:48:56 +0000 (14:48 +0200)]
ftpsget: simple example showing a FTPS fetch
Daniel Stenberg [Mon, 27 Aug 2012 12:42:56 +0000 (14:42 +0200)]
sftpget: SFTP is not "SSH FTP"
Armel Asselin [Mon, 27 Aug 2012 12:33:27 +0000 (14:33 +0200)]
sftpget: example showing a simple SFTP download
... using SSH-agent
Daniel Stenberg [Sun, 26 Aug 2012 22:16:03 +0000 (00:16 +0200)]
curl_multi_perform.3: extended/clarified
Daniel Stenberg [Thu, 23 Aug 2012 08:53:08 +0000 (10:53 +0200)]
INSTALL.cmake: clarify some flaws/limits in the cmake build
Daniel Stenberg [Tue, 21 Aug 2012 20:30:47 +0000 (22:30 +0200)]
https.c example: spell check used define
Bug: http://curl.haxx.se/bug/view.cgi?id=
3559845
Reported by: Olivier Berger
Daniel Stenberg [Sat, 18 Aug 2012 22:18:34 +0000 (00:18 +0200)]
configure: update the copyright years for the output
Nick Zitzmann [Fri, 17 Aug 2012 04:31:41 +0000 (22:31 -0600)]
darwinssl: add TLS 1.1 and 1.2 support, replace deprecated functions
In Mountain Lion, Apple added TLS 1.1 and 1.2, and deprecated a number
of SecureTransport functions, some of which we were using. We now check
to see if the replacement functions are present, and if so, we use them
instead. The old functions are still present for users of older
cats. Also fixed a build warning that started to appear under Mountain
Lion
Daniel Stenberg [Thu, 16 Aug 2012 21:32:55 +0000 (23:32 +0200)]
curl_easy_setopt: documented CURLSOCKTYPE_ACCEPT for SOCKOPTFUNCTION
Gokhan Sengun [Sun, 24 Jun 2012 23:06:50 +0000 (02:06 +0300)]
ftp: active conn, place calling sockopt callback at the end of function
Commit
b91d29a28e170c16d65d956db79f2cd3a82372d2 introduces a bug and breaks Curl_closesocket function. sock_accepted flag for the second socket should be tagged as TRUE before the sockopt callback is called because in case the callback returns an error, Curl_closesocket function is going to call the - fclosesocket - callback for the accept()ed socket
Gokhan Sengun [Sun, 24 Jun 2012 22:46:01 +0000 (01:46 +0300)]
ftp: active conn, allow application to set sockopt after accept() call
For active FTP connections, applications may need setting the sockopt after accept() call returns successful. This fix gives a call to the callback registered with CURL_SOCKOPTFUNCTION option. Also a new sock type - CURLSOCKTYPE_ACCEPT - is added. This type is to be passed to application callbacks with - purpose - parameter. Applications may use this parameter to distinguish between socket types.
Daniel Stenberg [Thu, 16 Aug 2012 17:24:33 +0000 (19:24 +0200)]
configure: remove the --enable/disable-nonblocking options
Removing this option as it currently only functions to lure people into
wrongly using it and falsely believing that libcurl will work fine
without using nonblocking sockets internally - which leads to hard to
track or understand errors.
Ant Bryan [Mon, 13 Aug 2012 20:32:42 +0000 (16:32 -0400)]
MANUAL review
Daniel Stenberg [Fri, 10 Aug 2012 08:54:38 +0000 (10:54 +0200)]
curl.1: shorten lines, avoid referring to libcurl instead of curl
Ant Bryan [Fri, 10 Aug 2012 08:49:22 +0000 (10:49 +0200)]
curl.1: fix more consistent wording
"If this option is used several times, the last one will be used."
uniformity
Daniel Stenberg [Fri, 10 Aug 2012 06:57:27 +0000 (08:57 +0200)]
ssh: use the libssh2 agent API conditionally
Commit
e351972bc89aa4c brought in the ssh agent support but some uses of
the libssh2 agent API was done unconditionally which wasn't good enough
since that API hasn't always been present.
Daniel Stenberg [Fri, 10 Aug 2012 06:54:29 +0000 (08:54 +0200)]
white space fix: shorten long line
... to please checksrc.pl
Kamil Dudka [Thu, 9 Aug 2012 12:08:11 +0000 (14:08 +0200)]
docs: update the links to cipher-suites supported by NSS
... and make the list of cipher-suites in nss.c readable by humans.
Bug: http://curl.haxx.se/mail/archive-2012-08/0016.html
Kamil Dudka [Thu, 9 Aug 2012 07:40:00 +0000 (09:40 +0200)]
nss: do not print misleading NSS error codes
Daniel Stenberg [Wed, 8 Aug 2012 21:19:05 +0000 (23:19 +0200)]
RELEASE-NOTES: synced with
0774386b23
5 more bug fixes, one change, 6 contributors
Armel Asselin [Fri, 16 Mar 2012 21:40:39 +0000 (22:40 +0100)]
docs: mention CURLSSH_AUTH_AGENT
Armel Asselin [Fri, 9 Mar 2012 16:24:42 +0000 (17:24 +0100)]
SSH: added agent based authentication
CURLSSH_AUTH_AGENT is a new auth type for SSH
Daniel Stenberg [Wed, 8 Aug 2012 21:01:34 +0000 (23:01 +0200)]
bump version to 7.28.0
I am about to merge the first patch that adds changes into the pending
release, and thus we bump the minor number.
Daniel Stenberg [Wed, 8 Aug 2012 21:01:14 +0000 (23:01 +0200)]
RELEASE-NOTES: added missing link
Daniel Stenberg [Wed, 8 Aug 2012 12:58:09 +0000 (14:58 +0200)]
curl_version: fixed Value stored to 'len' is never read
Fixed this (harmless) clang-analyzer warning. Also fixed the source
indentation level.
Daniel Stenberg [Wed, 8 Aug 2012 12:54:38 +0000 (14:54 +0200)]
TODO-RELEASE: the (nil) bug is fixed
Daniel Stenberg [Wed, 8 Aug 2012 12:50:32 +0000 (14:50 +0200)]
add_next_timeout: minor restructure of code
By reading the ->head pointer and using that instead of the ->size
number to figure out if there's a list remaining we avoid the (false
positive) clang-analyzer warning that we might dereference of a null
pointer.
Daniel Stenberg [Wed, 8 Aug 2012 11:49:35 +0000 (13:49 +0200)]
verbose messages: fixed output of hostnames in re-used connections
I suspect this is a regression introduced in commit
207cf150, included
since 7.24.0.
Avoid showing '(nil)' as hostname in verbose output by making sure the
hostname fixup function is called early enough to set the pointers that
are used for this. The name data is set again for each request even for
re-used connections to handle multiple hostnames over the same
connection (like with proxy) or that the casing etc of the host name is
changed between requests (which has proven to be important at least once
in the past).
Test1011 was modified to use a redirect with a re-used a connection
since it then showed the bug and now lo longer does. There's currently
no easy way to have the test suite detect 'nil' texts in verbose ouputs
so no tests will detect if this problem gets reintroduced.
Bug: http://curl.haxx.se/mail/lib-2012-07/0111.html
Reported by: Gisle Vanem
Nick Zitzmann [Tue, 7 Aug 2012 23:08:54 +0000 (17:08 -0600)]
metalink: Un-broke the build when building --with-darwinssl
Guenter Knauf [Wed, 8 Aug 2012 03:03:16 +0000 (05:03 +0200)]
Fix some compiler warnings.
Daniel Stenberg [Tue, 7 Aug 2012 22:04:00 +0000 (00:04 +0200)]
TODO-RELEASE: two bugs fixed
These are now addressed:
323 - patch - select.c / Curl_socket_check() interrupted
325 - Avoid leak of local device string when reusing connection
Daniel Stenberg [Tue, 7 Aug 2012 22:03:30 +0000 (00:03 +0200)]
curl.1: minor format fix for --data-ascii
... and removal of trailing whitespace on a single line
Ant Bryan [Tue, 7 Aug 2012 17:15:06 +0000 (13:15 -0400)]
curl man page cleanup
Mike Crowe [Tue, 17 Jul 2012 16:43:49 +0000 (18:43 +0200)]
Avoid leak of local device string when reusing connection
Ensure that the copy of the CURLOPT_INTERFACE string is freed if we
decide we can reuse an existing connection.
Daniel Stenberg [Tue, 7 Aug 2012 21:30:05 +0000 (23:30 +0200)]
Curl_socket_check: fix timeout return value for select users
This is the same fix applied for the conditional code that uses select()
that was already done for the poll specific code in commit
b61e8b81f5038.
Maxime Larocque [Tue, 7 Aug 2012 21:24:13 +0000 (23:24 +0200)]
Curl_socket_check: fix return code for timeout
We found a problem with ftp transfer using libcurl (7.23 and 7.25)
inside an application which is receiving unix signals (SIGUSR1,
SIGUSR2...) almost continuously. (Linux 2.4, PowerPC, HAVE_POLL_FINE
defined).
Curl_socket_check() uses poll() to wait for the socket, and retries it
when a signal is received (EINTR). However, if a signal is received and
it also happens that the timeout has been reached, Curl_socket_check()
returns -1 instead of 0 (indicating an error instead of a timeout).
In our case, the result is an aborted connection even before the ftp
banner is received from the server, and a return value of
CURLE_OUT_OF_MEMORY from curl_easy_perform() (Curl_pp_multi_statemach(),
in pingpong.c, actually returns OOM if Curl_socket_check() fails :-)
Funny to debug on a system on which OOM is a possible cause).
Bug: http://curl.haxx.se/mail/lib-2012-07/0122.html
Daniel Stenberg [Tue, 7 Aug 2012 21:20:06 +0000 (23:20 +0200)]
RELEASE-NOTES: synced with
b4a558041fdf65c0
Daniel Stenberg [Tue, 7 Aug 2012 21:19:42 +0000 (23:19 +0200)]
TODO-RELEASE: fixed another bug
bug #
3544688 "crash during retry with libcurl and SFTP"
Daniel Stenberg [Tue, 7 Aug 2012 13:01:54 +0000 (15:01 +0200)]
WSAPoll: disabled on all windows builds
Due to WSAPoll bugs, libcurl does not work as intended. When the cURL
library is used to setup a connection to an incorrect port, normally the
result is CURLE_COULDNT_CONNECT, /* 7 */, but due to the bug in WSAPoll,
the result now is CURLE_OPERATION_TIMEDOUT, /* 28 - the timeout time was
reached */.
On August 1, Jan Koen Annot opened a case for this to Microsoft Premier
Online (https://premier.microsoft.com/). The support engineer handling
the case wrote that the case description is quite clear. He will try to
reproduce the issue and then proceed with troubleshooting it.
Reported by: Jan Koen Annot
Bug: http://curl.haxx.se/mail/lib-2012-07/0310.html
Daniel Stenberg [Tue, 7 Aug 2012 12:55:19 +0000 (14:55 +0200)]
retry request: only access the HTTP data if in fact HTTP
When figuring out if the data stream needs to be rewound when the
request is to be resent, we must not access the HTTP struct unless the
protocol used is indeed HTTP...
Bug: http://curl.haxx.se/bug/view.cgi?id=
3544688
Daniel Stenberg [Tue, 7 Aug 2012 12:48:34 +0000 (14:48 +0200)]
TODO: support DANE, we already support gnutls without gcrypt
Daniel Stenberg [Tue, 7 Aug 2012 12:13:09 +0000 (14:13 +0200)]
curl-config: parentheses fix
Braces, not parentheses, should be used for shell variable names.
Bug: http://curl.haxx.se/bug/view.cgi?id=
3551460
Reported by: Edward Sheldrake
Daniel Stenberg [Tue, 7 Aug 2012 11:57:13 +0000 (13:57 +0200)]
VC build: add define for openssl
This fixes a build failure of lib/ssluse.c.
Bug: http://curl.haxx.se/bug/view.cgi?id=
3552997
Daniel Stenberg [Tue, 7 Aug 2012 11:49:13 +0000 (13:49 +0200)]
TODO-RELEASE: two bugs fixed!
Daniel Stenberg [Tue, 7 Aug 2012 11:45:59 +0000 (13:45 +0200)]
globbing: fix segfault when >9 globs were used
Stupid lack of range checks caused the code to overwrite local variables
after glob number nine. Added checks now.
Bug: http://curl.haxx.se/bug/view.cgi?id=
3546353
Joe Mason [Mon, 6 Aug 2012 17:44:38 +0000 (13:44 -0400)]
sws: close sockets properly
Fix a bug where closed sockets (fd -1) were left in the all_sockets
list, because of missing parens in a pointer arithmetic expression
Reenable the tests that were locking up due to this bug.
Joe Mason [Mon, 6 Aug 2012 17:43:52 +0000 (13:43 -0400)]
Remove debug logs that were accidentally checked in
Joe Mason [Mon, 6 Aug 2012 17:01:46 +0000 (13:01 -0400)]
Use select in sws, which has better cross-platform support than poll
Joe Mason [Mon, 6 Aug 2012 16:36:08 +0000 (12:36 -0400)]
Use cross-platform curlx_nonblock instead of fcntl in sws
Daniel Stenberg [Mon, 6 Aug 2012 21:59:28 +0000 (23:59 +0200)]
operate: fix clang-analyzer warnings for never read variables
Two separate "Value stored to 'XXX' is never read" warnings