From c5fa33fe50913381685a5d609713f8d1f5d63ba8 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 25 Apr 2015 05:04:47 +0200 Subject: update curl to latest stable version --- package/curl/patches/patch-lib_url_c | 28 +++++++++++++++++++++++++++ package/curl/patches/patch-src_tool_operate_c | 6 +++--- 2 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 package/curl/patches/patch-lib_url_c (limited to 'package/curl/patches') diff --git a/package/curl/patches/patch-lib_url_c b/package/curl/patches/patch-lib_url_c new file mode 100644 index 000000000..f4c934576 --- /dev/null +++ b/package/curl/patches/patch-lib_url_c @@ -0,0 +1,28 @@ +--- curl-7.42.0.orig/lib/url.c 2015-04-22 07:55:54.000000000 +0200 ++++ curl-7.42.0/lib/url.c 2015-04-24 18:00:21.000000000 +0200 +@@ -3069,9 +3069,11 @@ ConnectionExists(struct SessionHandle *d + struct connectdata *check; + struct connectdata *chosen = 0; + bool canPipeline = IsPipeliningPossible(data, needle); ++#ifdef USE_NTLM + bool wantNTLMhttp = ((data->state.authhost.want & CURLAUTH_NTLM) || + (data->state.authhost.want & CURLAUTH_NTLM_WB)) && + (needle->handler->protocol & PROTO_FAMILY_HTTP) ? TRUE : FALSE; ++#endif + struct connectbundle *bundle; + + *force_reuse = FALSE; +@@ -3208,8 +3210,11 @@ ConnectionExists(struct SessionHandle *d + continue; + } + +- if((!(needle->handler->flags & PROTOPT_CREDSPERREQUEST)) || +- (wantNTLMhttp || check->ntlm.state != NTLMSTATE_NONE)) { ++ if((!(needle->handler->flags & PROTOPT_CREDSPERREQUEST)) ++#ifdef USE_NTLM ++ || (wantNTLMhttp || check->ntlm.state != NTLMSTATE_NONE) ++#endif ++ ) { + /* This protocol requires credentials per connection or is HTTP+NTLM, + so verify that we're using the same name and password as well */ + if(!strequal(needle->user, check->user) || diff --git a/package/curl/patches/patch-src_tool_operate_c b/package/curl/patches/patch-src_tool_operate_c index eb1a3d52b..f9b563b16 100644 --- a/package/curl/patches/patch-src_tool_operate_c +++ b/package/curl/patches/patch-src_tool_operate_c @@ -1,6 +1,6 @@ ---- curl-7.36.0.orig/src/tool_operate.c 2014-03-25 11:36:28.000000000 +0100 -+++ curl-7.36.0/src/tool_operate.c 2014-04-02 14:59:00.000000000 +0200 -@@ -1794,8 +1794,10 @@ CURLcode operate(struct GlobalConfig *co +--- curl-7.42.0.orig/src/tool_operate.c 2015-04-16 23:39:50.000000000 +0200 ++++ curl-7.42.0/src/tool_operate.c 2015-04-24 13:31:09.000000000 +0200 +@@ -1828,8 +1828,10 @@ CURLcode operate(struct GlobalConfig *co if(res == PARAM_HELP_REQUESTED) tool_help(); /* Check if we were asked for the manual */ -- cgit v1.2.3