Steve Holme [Wed, 24 Dec 2014 14:32:24 +0000 (14:32 +0000)]
build: Removed WIN64 definition from the libcurl Visual Studio projects
Removed the WIN64 pre-processor definition from the libcurl project
files as:
* WIN64 is not used in our source code
* The curl projects files don't define it
* It isn't required by or used in the platform SDK
* For backwards compatability curl_setup.h defines WIN32
* The compiler automatically defines _WIN64 for x64 builds
Historically Visual Studio projects have defined WIN32, in addition to
the compiler defined _WIN32 definition, and I had incorrectly changed
that to WIN64 for the x64 libcurl builds but not in the curl projects.
As such, it is questionable whether this should be defined or not. For
more information see the following cache of a discussion that took
place on the microsoft.public.vc.mfc newsgroup:
http://www.tech-archive.net/Archive/VC/microsoft.public.vc.mfc/2008-06/msg00074.html
Steve Holme [Tue, 23 Dec 2014 00:16:07 +0000 (00:16 +0000)]
openssl.c Fix for compilation errors with older versions of OpenSSL
openssl.c:1408: error: 'TLS1_1_VERSION' undeclared
openssl.c:1411: error: 'TLS1_2_VERSION' undeclared
John Malmberg [Mon, 22 Dec 2014 20:50:12 +0000 (14:50 -0600)]
Fix comment edit in vms/backup_gnv_curl_src.com
packages/vms/backup_gnv_curl_src.com: Originally copied from Bash port.
Daniel Stenberg [Mon, 22 Dec 2014 13:17:12 +0000 (14:17 +0100)]
curl: show size of inhibited data when using -v
To offer some more info and yet it doesn't use more lines.
Daniel Stenberg [Mon, 22 Dec 2014 13:09:46 +0000 (14:09 +0100)]
openssl: fix SSL/TLS versions in verbose output
Daniel Stenberg [Mon, 22 Dec 2014 12:56:04 +0000 (13:56 +0100)]
openssl: make it compile against openssl 1.1.0-DEV master branch
Marc Hoersken [Sun, 21 Dec 2014 23:30:02 +0000 (00:30 +0100)]
sshserver.pl: clarify and streamline variable names
Daniel Stenberg [Sun, 21 Dec 2014 22:25:49 +0000 (23:25 +0100)]
openssl: warn for SRP set if SSLv3 is used, not for TLS version
... as it requires TLS and it was was left to warn on the default from
when default was SSL...
Daniel Stenberg [Sun, 21 Dec 2014 22:21:16 +0000 (23:21 +0100)]
smb: use memcpy() instead of strncpy()
... as it never copies the trailing zero anyway and always just the four
bytes so let's not mislead anyone into thinking it is actually treated
as a string.
Coverity CID:
1260214
John E. Malmberg [Sun, 21 Dec 2014 15:24:55 +0000 (09:24 -0600)]
VMS: Updates for 0740-0D1220
lib/setup-vms.h : VAX HP OpenSSL port is ancient, needs help.
More defines to set symbols to uppercase.
src/tool_main.c : Fix parameter to vms_special_exit() call.
packages/vms/ :
backup_gnv_curl_src.com : Fix the error message to have the correct package.
build_curl-config_script.com : Rewrite to be more accurate.
build_libcurl_pc.com : Use tool_version.h now.
build_vms.com : Fix to handle lib/vtls directory.
curl_gnv_build_steps.txt : Updated build procedure documentation.
generate_config_vms_h_curl.com :
* VAX does not support 64 bit ints, so no NTLM support for now.
* VAX HP SSL port is ancient, needs some help.
* Disable NGHTTP2 for now, not ported to VMS.
* Disable UNIX_SOCKETS, not available on VMS yet.
* HP GSSAPI port does not have gss_nt_service_name.
gnv_link_curl.com : Update for new curl structure.
pcsi_product_gnv_curl.com : Set up to optionally do a complete build.
Marc Hoersken [Sun, 21 Dec 2014 13:32:40 +0000 (14:32 +0100)]
sockfilt.c: use non-Ex functions that are available before WinXP
It was initially reported by Guenter that GetFileSizeEx
requires (_WIN32_WINNT >= 0x0500) to be true.
Marc Hoersken [Sun, 21 Dec 2014 02:48:41 +0000 (03:48 +0100)]
tests: use Cygwin-style paths in SSH, SSHD and SFTP config files
Second patch to enable Windows support using Cygwin-based OpenSSH.
Tested with CopSSH 5.0.0 free edition using an msys shell on Windows 7.
Marc Hoersken [Sun, 21 Dec 2014 01:42:29 +0000 (02:42 +0100)]
tests: support spaces in paths to SSH, SSHD and SFTP binaries
First patch to enable Windows support using Cygwin-based OpenSSH.
Steve Holme [Fri, 19 Dec 2014 20:41:47 +0000 (20:41 +0000)]
non-ascii: Reduce variable usage
Removed 'next' variable in Curl_convert_form(). Rather than setting it
from 'form->next' and using that to set 'form' after the conversion
just use 'form = form->next' instead.
Steve Holme [Fri, 19 Dec 2014 20:38:26 +0000 (20:38 +0000)]
non-ascii: Prefer while loop rather than a do loop
This also removes the need to check that the 'form' argument is valid.
Steve Holme [Fri, 19 Dec 2014 20:29:56 +0000 (20:29 +0000)]
non-ascii: Reduce variable scope
As 'result' isn't used out side the conversion callback code and
previously caused variable shadowing in the libiconv based code.
Steve Holme [Fri, 19 Dec 2014 20:17:37 +0000 (20:17 +0000)]
non-ascii: We prefer 'CURLcode result'
This also fixes a variable shadowing issue when HAVE_ICONV is defined
as rc was declared for the result code of libiconv based functions.
Marc Hoersken [Fri, 19 Dec 2014 16:25:16 +0000 (17:25 +0100)]
secureserver.pl: clean up formatting of config and fix verbose output
Verbose output was not matching the actual configuration file,
because FIPS and Windows conditions were ignored.
Marc Hoersken [Fri, 19 Dec 2014 16:17:26 +0000 (17:17 +0100)]
secureserver.pl: update Windows detection and fix path conversion
Marc Hoersken [Fri, 19 Dec 2014 16:16:19 +0000 (17:16 +0100)]
secureserver.pl: make OpenSSL CApath and cert absolute path values
Recent stunnel versions (5.08) seem to have trouble with relative
paths on Windows. This turns the relative paths into absolute ones.
Patrick Monnerat [Thu, 18 Dec 2014 10:05:18 +0000 (11:05 +0100)]
if2ip: dummy scope parameter for Curl_if2ip() call in SIOCGIFADDR-enabled code.
Kyle J. McKay [Wed, 17 Dec 2014 14:52:07 +0000 (15:52 +0100)]
parseurlandfillconn(): fix improper non-numeric scope_id stripping.
Fixes SF bug 1149: http://sourceforge.net/p/curl/bugs/1449/
Patrick Monnerat [Tue, 16 Dec 2014 12:29:01 +0000 (13:29 +0100)]
IPV6: address scope != scope id
There was a confusion between these: this commit tries to disambiguate them.
- Scope can be computed from the address itself.
- Scope id is scope dependent: it is currently defined as 1-based local
interface index for link-local scoped addresses, and as a site index(?) for
(obsolete) site-local addresses. Linux only supports it for link-local
addresses.
The URL parser properly parses a scope id as an interface index, but stores it
in a field named "scope": confusion. The field has been renamed into "scope_id".
Curl_if2ip() used the scope id as it was a scope. This caused failures
to bind to an interface.
Scope is now computed from the addresses and Curl_if2ip() matches them.
If redundantly specified in the URL, scope id is check for mismatch with
the interface index.
This commit should fix SF bug #1451.
Patrick Monnerat [Mon, 15 Dec 2014 15:36:57 +0000 (16:36 +0100)]
connect: singleipconnect(): properly try other address families after failure
Daniel Stenberg [Mon, 15 Dec 2014 21:52:30 +0000 (22:52 +0100)]
SFTP: work-around servers that return zero size on STAT
Bug: http://curl.haxx.se/mail/lib-2014-12/0103.html
Pathed-by: Marc Renault
Daniel Stenberg [Tue, 16 Dec 2014 08:01:56 +0000 (09:01 +0100)]
glob_next_url: make the loop count upwards
As the former contruct apparently caused a compiler warning, mentioned
in
d8efde07e556c.
Daniel Stenberg [Tue, 16 Dec 2014 07:35:47 +0000 (08:35 +0100)]
tool_operate: we prefer 'CURLcode result'
Daniel Stenberg [Tue, 16 Dec 2014 00:00:23 +0000 (01:00 +0100)]
tool_urlglob: unify return codes to use CURLcode
There was a mix of GlobCode, CURLcode and ints and they were mostly
passing around CURLcode errors. This change makes the functions use only
CURLcode and removes the GlobCode type completely.
Daniel Stenberg [Mon, 15 Dec 2014 23:51:22 +0000 (00:51 +0100)]
tool_urlglob.c: partly reverse
dc19789444
The loop in glob_next_url() needs to be done backwards to maintain the
logic.
dc19789444 caused test 1235 to fail.
Daniel Stenberg [Mon, 15 Dec 2014 21:30:27 +0000 (22:30 +0100)]
KNOWN_BUGS: the SFTP code doesn't support CURLINFO_FILETIME
Jay Satiro [Mon, 15 Dec 2014 19:42:21 +0000 (14:42 -0500)]
opts: Warn CURLOPT_TIMEOUT overrides when set after CURLOPT_TIMEOUT_MS
Change CURLOPT_TIMEOUT doc to warn that if CURLOPT_TIMEOUT and
CURLOPT_TIMEOUT_MS are both set whichever one is set last is the one
that will be used.
Prior to this change that behavior was only noted in the
CURLOPT_TIMEOUT_MS doc.
Nick Zitzmann [Mon, 15 Dec 2014 06:56:09 +0000 (00:56 -0600)]
darwinssl: fix incorrect usage of aprintf()
Commit
b13923f changed an snprintf() to use aprintf(), but the API usage
wasn't correct, and was causing a crash to occur. This fixes it.
Steve Holme [Sun, 14 Dec 2014 22:39:27 +0000 (22:39 +0000)]
copyright: Updated the copyright year following recent updates
Daniel Stenberg [Sun, 14 Dec 2014 22:32:53 +0000 (23:32 +0100)]
tool_urlglob.c: reverse two loops
By counting from 0 and up instead of backwards like before, we remove
the need for the "funny" check of the unsigned variable when decreased
passed zero. Easier to read and less risk for compiler warnings.
Marc Hoersken [Sun, 14 Dec 2014 21:50:01 +0000 (22:50 +0100)]
tool_urlglob.c: Added braces to clarify the conditions
Marc Hoersken [Sun, 14 Dec 2014 21:45:06 +0000 (22:45 +0100)]
tool_urlglob.c: Silence warning C6293: Ill-defined for-loop
The >= 0 is actually not required, since i underflows and
the for-loop is stopped using the < condition, but this
makes the VS2012 compiler and code analysis happy.
Marc Hoersken [Sun, 14 Dec 2014 21:31:10 +0000 (22:31 +0100)]
tool_binmode.c: Explicitly ignore the return code of setmode
Fixes code analysis warning C6031:
return value ignored: <function> could return unexpected value
Marc Hoersken [Sun, 14 Dec 2014 21:16:23 +0000 (22:16 +0100)]
lib: Fixed multiple code analysis warnings if SAL are available
warning C28252: Inconsistent annotation for function:
parameter has another annotation on this instance
Steve Holme [Sun, 14 Dec 2014 21:01:09 +0000 (21:01 +0000)]
smb.c: Fixed code analysis warning
smb.c:320: warning C6297: Arithmetic overflow: 32-bit value is shifted,
then cast to 64-bit value. Result may not be an expected
value
Marc Hoersken [Sun, 14 Dec 2014 17:32:41 +0000 (18:32 +0100)]
tool_util.c: Use GetTickCount64 if it is available
Steve Holme [Sun, 14 Dec 2014 16:42:08 +0000 (16:42 +0000)]
smb: Use HAVE_PROCESS_H for process.h inclusion
Rather than testing against _WIN32 use the preferred HAVE_PROCESS_H
pre-processor define when including process.h.
Daniel Stenberg [Sun, 14 Dec 2014 16:34:02 +0000 (17:34 +0100)]
darwinssl: aprintf() to allocate the session key
... to avoid using a fixed memory size that risks being too large or too
small.
Marc Hoersken [Sun, 14 Dec 2014 16:27:20 +0000 (17:27 +0100)]
curl_schannel: Improvements to memory re-allocation strategy
- do not grow memory by doubling its size
- do not leak previously allocated memory if reallocation fails
- replace while-loop with a single check to make sure
that the requested amount of data fits into the buffer
Bug: http://curl.haxx.se/bug/view.cgi?id=1450
Reported-by: Warren Menzer
Steve Holme [Sun, 14 Dec 2014 16:19:59 +0000 (16:19 +0000)]
asyn-ares: We prefer use of 'CURLcode result'
Marc Hoersken [Sun, 14 Dec 2014 15:40:49 +0000 (16:40 +0100)]
curl_schannel.c: Data may be available before connection shutdown
Steve Holme [Sun, 14 Dec 2014 13:09:29 +0000 (13:09 +0000)]
http2: Use 'CURLcode result' for curl result codes
Steve Holme [Sun, 14 Dec 2014 12:52:08 +0000 (12:52 +0000)]
asyn-thread: We prefer 'CURLcode result'
Steve Holme [Sun, 14 Dec 2014 12:27:57 +0000 (12:27 +0000)]
smb: Fixed unnecessary initialisation of struct member variables
There is no need to set the 'state' and 'result' member variables to
SMB_REQUESTING (0) and CURLE_OK (0) after the allocation via calloc()
as calloc() initialises the contents to zero.
Steve Holme [Sun, 14 Dec 2014 12:07:57 +0000 (12:07 +0000)]
ntlm: Fixed return code for bad type-2 Target Info
Use CURLE_BAD_CONTENT_ENCODING for bad type-2 Target Info security
buffers just like we do for bad decodes.
Steve Holme [Sun, 14 Dec 2014 11:45:14 +0000 (11:45 +0000)]
ntlm: Remove unnecessary casts in readshort_le()
I don't think both of my fix ups from yesterday were needed to fix the
compilation warning, so remove the one that I think is unnecessary and
let the next Android autobuild prove/disprove it.
Steve Holme [Sat, 13 Dec 2014 14:55:26 +0000 (14:55 +0000)]
curl_ntlm_msgs.c: Another attempt to fix compilation warning
curl_ntlm_msgs.c:170: warning: conversion to 'short unsigned int' from
'int' may alter its value
Guenter Knauf [Sat, 13 Dec 2014 14:02:30 +0000 (15:02 +0100)]
synctime.c: added own user-agent string.
Steve Holme [Sat, 13 Dec 2014 13:06:56 +0000 (13:06 +0000)]
smb.c: Fixed line longer than 79 columns
Steve Holme [Sat, 13 Dec 2014 12:51:11 +0000 (12:51 +0000)]
curl_ntlm_msgs.c: Fixed compilation warning from commit
783b5c3b11
curl_ntlm_msgs.c:169: warning: conversion to 'short unsigned int' from
'int' may alter its value
Guenter Knauf [Sat, 13 Dec 2014 12:46:45 +0000 (13:46 +0100)]
mk-ca-bundle.pl: restored forced run again.
Guenter Knauf [Sat, 13 Dec 2014 12:43:19 +0000 (13:43 +0100)]
synctime.c: removed another timeserver URL.
worldtimeserver.com seems also no longer available.
Guenter Knauf [Sat, 13 Dec 2014 12:29:59 +0000 (13:29 +0100)]
synctime.c: fixed timeserver URLs.
For getting the date header its not necessary to access special
pages or even CGI scripts - all pages including the main index
reply with the date header, therefore shortened URLs to domain.
Removed worldtime.com; added pool.ntp.org.
Steve Holme [Sat, 13 Dec 2014 12:32:32 +0000 (12:32 +0000)]
ftp.c: Fixed compilation warning when no verbose string support
ftp.c:819: warning: unused parameter 'lineno'
Steve Holme [Sat, 13 Dec 2014 12:12:45 +0000 (12:12 +0000)]
smb: Added state change functions to assist with debugging
For debugging purposes, and as per other protocols within curl, added
state change functions rather than changing the states directly.
Steve Holme [Sat, 13 Dec 2014 11:14:55 +0000 (11:14 +0000)]
ntlm: Use short integer when decoding 16-bit values
Steve Holme [Fri, 12 Dec 2014 23:30:50 +0000 (23:30 +0000)]
RELEASE-NOTES: Synced with
6291a16b20
Steve Holme [Fri, 12 Dec 2014 22:57:31 +0000 (22:57 +0000)]
smtp.c: Fixed compilation warnings
smtp.c:2357 warning: adding 'size_t' (aka 'unsigned long') to a string
does not append to the string
smtp.c:2375 warning: adding 'size_t' (aka 'unsigned long') to a string
does not append to the string
smtp.c:2386 warning: adding 'size_t' (aka 'unsigned long') to a string
does not append to the string
Used array index notation instead.
Steve Holme [Fri, 12 Dec 2014 22:08:03 +0000 (22:08 +0000)]
smb: Disable SMB when 64-bit integers are not supported
This fixes compilation issues with compilers that don't support 64-bit
integers through long long or __int64.
Steve Holme [Fri, 12 Dec 2014 21:57:59 +0000 (21:57 +0000)]
ntlm: Disable NTLM v2 when 64-bit integers are not supported
This fixes compilation issues with compilers that don't support 64-bit
integers through long long or __int64 which was introduced in commit
07b66cbfa4.
Steve Holme [Fri, 12 Dec 2014 21:40:09 +0000 (21:40 +0000)]
ntlm: Allow NTLM2Session messages when USE_NTRESPONSES manually defined
Previously USE_NTLM2SESSION would only be defined automatically when
USE_NTRESPONSES wasn't already defined. Separated the two definitions
so that the user can manually set USE_NTRESPONSES themselves but
USE_NTLM2SESSION is defined automatically if they don't define it.
Steve Holme [Fri, 12 Dec 2014 21:06:01 +0000 (21:06 +0000)]
smtp.c: Fixed line longer than 79 columns
Steve Holme [Fri, 12 Dec 2014 19:46:56 +0000 (19:46 +0000)]
config-win32.h: Don't enable Windows Crypt API if using OpenSSL
As the OpenSSL and NSS Crypto engines are prefered by the core NTLM
routines, to the Windows Crypt API, don't define USE_WIN32_CRYPT
automatically when either OpenSSL or NSS are in use - doing so would
disable NTLM2Session responses in NTLM type-3 messages.
Steve Holme [Fri, 12 Dec 2014 18:55:16 +0000 (18:55 +0000)]
smtp: Fixed inappropriate free of the scratch buffer
If the scratch buffer was allocated in a previous call to
Curl_smtp_escape_eob(), a new buffer not allocated in the subsequent
call and no action taken by that call, then an attempt would be made to
try and free the buffer which, by now, would be part of the data->state
structure.
This bug was introduced in commit
4bd860a001.
Steve Holme [Fri, 12 Dec 2014 18:37:06 +0000 (18:37 +0000)]
smtp: Fixed dot stuffing when EOL characters were at end of input buffers
Fixed a problem with the CRLF. detection when multiple buffers were
used to upload an email to libcurl and the line ending character(s)
appeared at the end of each buffer. This meant any lines which started
with . would not be escaped into .. and could be interpreted as the end
of transmission string instead.
This only affected libcurl based applications that used a read function
and wasn't reproducible with the curl command-line tool.
Bug: http://curl.haxx.se/bug/view.cgi?id=1456
Assisted-by: Patrick Monnerat
Daniel Stenberg [Thu, 11 Dec 2014 08:15:04 +0000 (09:15 +0100)]
telnet: fix "cast increases required alignment of target type"
Daniel Stenberg [Wed, 10 Dec 2014 21:43:44 +0000 (22:43 +0100)]
ntlm_wb_response: fix "statement not reached"
... and I could use a break instead of a goto to end the loop.
Bug: http://curl.haxx.se/mail/lib-2014-12/0089.html
Reported-by: Tor Arntsen
Steve Holme [Wed, 10 Dec 2014 12:59:41 +0000 (12:59 +0000)]
RELEASE-NOTES: Synced with
1cc5194337
Added some bug fixes that I had missed in previous synchronisations.
Daniel Stenberg [Wed, 10 Dec 2014 12:12:26 +0000 (13:12 +0100)]
Curl_unix2addr: avoid using the variable name 'sun'
I suspect this causes compile failures on Solaris:
Bug: http://curl.haxx.se/mail/lib-2014-12/0081.html
Steve Holme [Wed, 10 Dec 2014 11:57:11 +0000 (11:57 +0000)]
url.c: Fixed compilation warning when USE_NTLM is not defined
url.c:3078: warning: variable 'credentialsMatch' set but not used
Steve Holme [Wed, 10 Dec 2014 11:38:38 +0000 (11:38 +0000)]
parsedate.c: Fixed compilation warning
parsedate.c:548: warning: 'parsed' may be used uninitialized in this
function
As curl_getdate() returns -1 when parsedate() fails we can initialise
parsed to -1.
Daniel Stenberg [Wed, 10 Dec 2014 10:56:43 +0000 (11:56 +0100)]
TODO: Cache negative name resolves
Worth exploring
Daniel Stenberg [Tue, 9 Dec 2014 23:41:32 +0000 (00:41 +0100)]
ldap: check Curl_client_write() return codes
There might be one or two memory leaks left in the error paths.
Daniel Stenberg [Tue, 9 Dec 2014 23:36:31 +0000 (00:36 +0100)]
ldap: rename variables to comply to curl standards
Dan Fandrich [Tue, 9 Dec 2014 23:06:10 +0000 (00:06 +0100)]
sws.c: Fixed 'rc' may be used uninitialized warning
Dan Fandrich [Sun, 7 Dec 2014 11:24:29 +0000 (12:24 +0100)]
cookies: Improved OOM handling in cookies
This fixes the test 506 torture test. The internal cookie API really
ought to be improved to separate cookie parsing errors (which may be
ignored) with OOM errors (which should be fatal).
Guenter Knauf [Tue, 9 Dec 2014 17:18:40 +0000 (18:18 +0100)]
synctime.c: fixed user-agent setting.
Some websites meanwhile refuse to reply to requests from ancient
browsers like IE6, therefore I've comment out this setting, but
also fixed the string to now fake IE8 if someone enables it.
Daniel Stenberg [Tue, 9 Dec 2014 12:38:55 +0000 (13:38 +0100)]
smb: fix unused return code warning
Patrick Monnerat [Tue, 9 Dec 2014 14:43:51 +0000 (15:43 +0100)]
Curl_client_write() & al.: chop long data, convert data only once.
Guenter Knauf [Tue, 9 Dec 2014 12:30:28 +0000 (13:30 +0100)]
VC build: added sspi define for winssl-zlib builds.
Daniel Stenberg [Tue, 9 Dec 2014 10:45:43 +0000 (11:45 +0100)]
schannel_recv: return the correct code
Bug: http://curl.haxx.se/bug/view.cgi?id=1462
Reported-by: Tae Hyoung Ahn
Daniel Stenberg [Mon, 8 Dec 2014 23:09:24 +0000 (00:09 +0100)]
http2: avoid logging neg "failure" if h2 was not requested
Daniel Stenberg [Mon, 8 Dec 2014 14:30:14 +0000 (15:30 +0100)]
openldap: do not ignore Curl_client_write() return codes
Daniel Stenberg [Mon, 8 Dec 2014 14:29:30 +0000 (15:29 +0100)]
compile: warn on unused return code from Curl_client_write()
Patrick Monnerat [Mon, 8 Dec 2014 14:30:11 +0000 (15:30 +0100)]
SMB: Fix a data size mismatch that broke SMB on big-endian platforms
Steve Holme [Sun, 7 Dec 2014 20:44:57 +0000 (20:44 +0000)]
smb: Fixed Windows autoconf builds following commit
eb88d778e7
As Windows based autoconf builds don't yet define USE_WIN32_CRYPTO
either explicitly through --enable-win32-cypto or automatically on
_WIN32 based platforms, subsequent builds broke with the following
error message:
"Can't compile NTLM support without a crypto library."
Steve Holme [Sun, 7 Dec 2014 18:58:17 +0000 (18:58 +0000)]
RELEASE-NOTES: Synced with
526603ff05
Bill Nagel [Tue, 2 Dec 2014 18:36:40 +0000 (13:36 -0500)]
smb: Build with SSPI enabled
Build SMB/CIFS protocol support when SSPI is enabled.
Bill Nagel [Tue, 2 Dec 2014 18:21:52 +0000 (13:21 -0500)]
ntlm: Use Windows Crypt API
Allow the use of the Windows Crypt API for NTLMv1 functions.
Dan Fandrich [Sun, 7 Dec 2014 11:22:52 +0000 (12:22 +0100)]
cookie.c: Refactored cleanup code to simplify
Also, fixed the outdated comments on the cookie API.
Dan Fandrich [Sun, 7 Dec 2014 10:08:10 +0000 (11:08 +0100)]
get_url_file_name: Fixed crash on OOM on debug build
This caused a null-pointer dereference which caused a few dozen
torture tests to fail.
Steve Holme [Sat, 6 Dec 2014 22:18:42 +0000 (22:18 +0000)]
sws.c: Fixed compilation warning
sws.c:2191 warning: 'rc' may be used uninitialized in this function
Steve Holme [Sat, 6 Dec 2014 22:14:50 +0000 (22:14 +0000)]
ftp.c: Fixed compilation warnings when proxy support disabled
ftp.c:1827 warning: unused parameter 'newhost'
ftp.c:1827 warning: unused parameter 'newport'
Steve Holme [Sat, 6 Dec 2014 21:44:00 +0000 (21:44 +0000)]
smb: Fixed a problem with large file transfers
Fixed an issue with the message size calculation where the raw bytes
from the buffer were interpreted as signed values rather than unsigned
values.
Reported-by: Gisle Vanem
Assisted-by: Bill Nagel
Steve Holme [Sat, 6 Dec 2014 21:02:06 +0000 (21:02 +0000)]
smb: Moved the URL decoding into a separate function
Steve Holme [Sat, 6 Dec 2014 20:46:54 +0000 (20:46 +0000)]
smb: Fixed URL encoded URLs not working