diff options
author | Steve Holme <steve_holme@hotmail.com> | 2014-11-09 11:25:10 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2014-11-09 11:47:40 +0000 |
commit | 40ee1ba0dcda5dcae7fceeeb3550456819c683a1 (patch) | |
tree | e5197d9f0bd0a6e609e829062e57742c7667c1c2 /lib/curl_ntlm.c | |
parent | 474442dd564cab52d7732403eba5cd630764ba26 (diff) | |
download | curl-40ee1ba0dcda5dcae7fceeeb3550456819c683a1.tar.gz |
ntlm: Moved the native Target Info clean-up from HTTP specific function
Diffstat (limited to 'lib/curl_ntlm.c')
-rw-r--r-- | lib/curl_ntlm.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/lib/curl_ntlm.c b/lib/curl_ntlm.c index a8f8d5326..4c30e0ad0 100644 --- a/lib/curl_ntlm.c +++ b/lib/curl_ntlm.c @@ -229,21 +229,11 @@ CURLcode Curl_output_ntlm(struct connectdata *conn, bool proxy) void Curl_http_ntlm_cleanup(struct connectdata *conn) { -#ifdef USE_WINDOWS_SSPI Curl_sasl_ntlm_cleanup(&conn->ntlm); Curl_sasl_ntlm_cleanup(&conn->proxyntlm); -#elif defined(NTLM_WB_ENABLED) - Curl_ntlm_wb_cleanup(conn); -#else - (void)conn; -#endif - -#ifndef USE_WINDOWS_SSPI - Curl_safefree(conn->ntlm.target_info); - conn->ntlm.target_info_len = 0; - Curl_safefree(conn->proxyntlm.target_info); - conn->proxyntlm.target_info_len = 0; +#if defined(NTLM_WB_ENABLED) + Curl_ntlm_wb_cleanup(conn); #endif } |