mirror of
https://github.com/curl/curl.git
synced 2026-04-11 12:01:42 +08:00
http_ntlm: remove unreachable code
Since the code now checks for NULL and returns before this point, 'ntlm'
cannot be NULL at this point in the code. Pointed out by Coverity.
Follow-up to 5586520745
Closes #17587
This commit is contained in:
parent
c9460d6237
commit
b950c8c03f
@ -202,9 +202,8 @@ CURLcode Curl_output_ntlm(struct Curl_easy *data, bool proxy)
|
||||
case NTLMSTATE_TYPE1:
|
||||
default: /* for the weird cases we (re)start here */
|
||||
/* Create a type-1 message */
|
||||
result = !ntlm ? CURLE_OUT_OF_MEMORY :
|
||||
Curl_auth_create_ntlm_type1_message(data, userp, passwdp, service,
|
||||
hostname, ntlm, &ntlmmsg);
|
||||
result = Curl_auth_create_ntlm_type1_message(data, userp, passwdp, service,
|
||||
hostname, ntlm, &ntlmmsg);
|
||||
if(!result) {
|
||||
DEBUGASSERT(Curl_bufref_len(&ntlmmsg) != 0);
|
||||
result = curlx_base64_encode((const char *) Curl_bufref_ptr(&ntlmmsg),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user