diff options
author | Steve Holme <steve_holme@hotmail.com> | 2014-11-09 11:34:36 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2014-11-09 11:54:50 +0000 |
commit | 8145f92dcc59ae33566ff8db81d2da26bb56ae84 (patch) | |
tree | 0677e98502f15572d511c920fe7b420bc5f4f221 | |
parent | 40ee1ba0dcda5dcae7fceeeb3550456819c683a1 (diff) |
ntlm: Removed an unnecessary free of native Target Info
Due to commit 40ee1ba0dc the free in Curl_ntlm_decode_type2_target() is
longer required.
-rw-r--r-- | lib/curl_ntlm_msgs.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/curl_ntlm_msgs.c b/lib/curl_ntlm_msgs.c index 437536ab7..5112b5369 100644 --- a/lib/curl_ntlm_msgs.c +++ b/lib/curl_ntlm_msgs.c @@ -193,9 +193,6 @@ CURLcode Curl_ntlm_decode_type2_target(struct SessionHandle *data, unsigned int target_info_len = 0; unsigned int target_info_offset = 0; - Curl_safefree(ntlm->target_info); - ntlm->target_info_len = 0; - if(size >= 48) { target_info_len = readshort_le(&buffer[40]); target_info_offset = readint_le(&buffer[44]); @@ -212,12 +209,11 @@ CURLcode Curl_ntlm_decode_type2_target(struct SessionHandle *data, return CURLE_OUT_OF_MEMORY; memcpy(ntlm->target_info, &buffer[target_info_offset], target_info_len); - ntlm->target_info_len = target_info_len; - } - } + ntlm->target_info_len = target_info_len; + return CURLE_OK; } |