summaryrefslogtreecommitdiff
path: root/lib/curl_sasl.c
diff options
context:
space:
mode:
authorPatrick Monnerat <patrick@monnerat.net>2017-09-02 12:49:59 +0100
committerPatrick Monnerat <patrick@monnerat.net>2017-09-02 12:49:59 +0100
commit6869d65f548b264725218f21cdf6443d26938e6f (patch)
treea588e621ab086d5290a66510f012622bd0202ac3 /lib/curl_sasl.c
parent70231d6a6551ab89ea2801df661fc1cd17967ba7 (diff)
downloadcurl-6869d65f548b264725218f21cdf6443d26938e6f.tar.gz
Curl_base64_encode: always call with a real data handle.
Some calls in different modules were setting the data handle to NULL, causing segmentation faults when using builds that enable character code conversions.
Diffstat (limited to 'lib/curl_sasl.c')
-rw-r--r--lib/curl_sasl.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/curl_sasl.c b/lib/curl_sasl.c
index bd574b5e2..550433d67 100644
--- a/lib/curl_sasl.c
+++ b/lib/curl_sasl.c
@@ -331,7 +331,8 @@ CURLcode Curl_sasl_start(struct SASL *sasl, struct connectdata *conn,
sasl->authused = SASL_MECH_NTLM;
if(force_ir || data->set.sasl_ir)
- result = Curl_auth_create_ntlm_type1_message(conn->user, conn->passwd,
+ result = Curl_auth_create_ntlm_type1_message(data,
+ conn->user, conn->passwd,
&conn->ntlm, &resp, &len);
}
else
@@ -493,7 +494,8 @@ CURLcode Curl_sasl_continue(struct SASL *sasl, struct connectdata *conn,
#ifdef USE_NTLM
case SASL_NTLM:
/* Create the type-1 message */
- result = Curl_auth_create_ntlm_type1_message(conn->user, conn->passwd,
+ result = Curl_auth_create_ntlm_type1_message(data,
+ conn->user, conn->passwd,
&conn->ntlm, &resp, &len);
newstate = SASL_NTLM_TYPE2MSG;
break;