What is a Conditionally Uninitialized Variable? The return value of a function that is potentially used to initialize a local variable is not checked. Therefore, reading the local variable may result in undefined behavior.
25 instances of this defect were found in the following locations:
if(socksreq[1] == 255) { /* status / message type */
failf(data, "User was rejected by the SOCKS5 server (%u %u).",
(unsigned int)socksreq[0], (unsigned int)socksreq[1]);
s_pSecFn->DeleteSecurityContext(&sspi_context); <------ HERE
return CURLE_COULDNT_CONNECT;
}
What is a Conditionally Uninitialized Variable? The return value of a function that is potentially used to initialize a local variable is not checked. Therefore, reading the local variable may result in undefined behavior.
25 instances of this defect were found in the following locations:
Instance 1 File :
lib/socks_sspi.c
Function:Curl_SOCKS5_gssapi_negotiate
https://github.com/siva-msft/curl/blob/0eda1cffe4f39fe489cd0e859817213df27aecf5/lib/socks_sspi.c#L194 Code extract:Instance 2 File :
lib/socks_sspi.c
Function:Curl_SOCKS5_gssapi_negotiate
https://github.com/siva-msft/curl/blob/0eda1cffe4f39fe489cd0e859817213df27aecf5/lib/socks_sspi.c#L216 Code extract:Instance 3 File :
lib/socks_sspi.c
Function:Curl_SOCKS5_gssapi_negotiate
https://github.com/siva-msft/curl/blob/0eda1cffe4f39fe489cd0e859817213df27aecf5/lib/socks_sspi.c#L230 Code extract:Instance 4 File :
lib/socks_sspi.c
Function:Curl_SOCKS5_gssapi_negotiate
https://github.com/siva-msft/curl/blob/0eda1cffe4f39fe489cd0e859817213df27aecf5/lib/socks_sspi.c#L266 Code extract:Instance 5 File :
lib/socks_sspi.c
Function:Curl_SOCKS5_gssapi_negotiate
https://github.com/siva-msft/curl/blob/0eda1cffe4f39fe489cd0e859817213df27aecf5/lib/socks_sspi.c#L276 Code extract:Instance 6 File :
lib/socks_sspi.c
Function:Curl_SOCKS5_gssapi_negotiate
https://github.com/siva-msft/curl/blob/0eda1cffe4f39fe489cd0e859817213df27aecf5/lib/socks_sspi.c#L285 Code extract:Instance 7 File :
lib/socks_sspi.c
Function:Curl_SOCKS5_gssapi_negotiate
https://github.com/siva-msft/curl/blob/0eda1cffe4f39fe489cd0e859817213df27aecf5/lib/socks_sspi.c#L298 Code extract:Instance 8 File :
lib/socks_sspi.c
Function:Curl_SOCKS5_gssapi_negotiate
https://github.com/siva-msft/curl/blob/0eda1cffe4f39fe489cd0e859817213df27aecf5/lib/socks_sspi.c#L310 Code extract:Instance 9 File :
lib/socks_sspi.c
Function:Curl_SOCKS5_gssapi_negotiate
https://github.com/siva-msft/curl/blob/0eda1cffe4f39fe489cd0e859817213df27aecf5/lib/socks_sspi.c#L325 Code extract:Instance 10 File :
lib/socks_sspi.c
Function:Curl_SOCKS5_gssapi_negotiate
https://github.com/siva-msft/curl/blob/0eda1cffe4f39fe489cd0e859817213df27aecf5/lib/socks_sspi.c#L390 Code extract:Instance 11 File :
lib/socks_sspi.c
Function:Curl_SOCKS5_gssapi_negotiate
https://github.com/siva-msft/curl/blob/0eda1cffe4f39fe489cd0e859817213df27aecf5/lib/socks_sspi.c#L400 Code extract:Instance 12 File :
lib/socks_sspi.c
Function:Curl_SOCKS5_gssapi_negotiate
https://github.com/siva-msft/curl/blob/0eda1cffe4f39fe489cd0e859817213df27aecf5/lib/socks_sspi.c#L408 Code extract:Instance 13 File :
lib/socks_sspi.c
Function:Curl_SOCKS5_gssapi_negotiate
https://github.com/siva-msft/curl/blob/0eda1cffe4f39fe489cd0e859817213df27aecf5/lib/socks_sspi.c#L419 Code extract:Instance 14 File :
lib/socks_sspi.c
Function:Curl_SOCKS5_gssapi_negotiate
https://github.com/siva-msft/curl/blob/0eda1cffe4f39fe489cd0e859817213df27aecf5/lib/socks_sspi.c#L430 Code extract:Instance 15 File :
lib/socks_sspi.c
Function:Curl_SOCKS5_gssapi_negotiate
https://github.com/siva-msft/curl/blob/0eda1cffe4f39fe489cd0e859817213df27aecf5/lib/socks_sspi.c#L442 Code extract:Instance 16 File :
lib/socks_sspi.c
Function:Curl_SOCKS5_gssapi_negotiate
https://github.com/siva-msft/curl/blob/0eda1cffe4f39fe489cd0e859817213df27aecf5/lib/socks_sspi.c#L474 Code extract:Instance 17 File :
lib/socks_sspi.c
Function:Curl_SOCKS5_gssapi_negotiate
https://github.com/siva-msft/curl/blob/0eda1cffe4f39fe489cd0e859817213df27aecf5/lib/socks_sspi.c#L483 Code extract:Instance 18 File :
lib/socks_sspi.c
Function:Curl_SOCKS5_gssapi_negotiate
https://github.com/siva-msft/curl/blob/0eda1cffe4f39fe489cd0e859817213df27aecf5/lib/socks_sspi.c#L494 Code extract:Instance 19 File :
lib/socks_sspi.c
Function:Curl_SOCKS5_gssapi_negotiate
https://github.com/siva-msft/curl/blob/0eda1cffe4f39fe489cd0e859817213df27aecf5/lib/socks_sspi.c#L504 Code extract:Instance 20 File :
lib/socks_sspi.c
Function:Curl_SOCKS5_gssapi_negotiate
https://github.com/siva-msft/curl/blob/0eda1cffe4f39fe489cd0e859817213df27aecf5/lib/socks_sspi.c#L512 Code extract:Instance 21 File :
lib/socks_sspi.c
Function:Curl_SOCKS5_gssapi_negotiate
https://github.com/siva-msft/curl/blob/0eda1cffe4f39fe489cd0e859817213df27aecf5/lib/socks_sspi.c#L519 Code extract:Instance 22 File :
lib/socks_sspi.c
Function:Curl_SOCKS5_gssapi_negotiate
https://github.com/siva-msft/curl/blob/0eda1cffe4f39fe489cd0e859817213df27aecf5/lib/socks_sspi.c#L529 Code extract:Instance 23 File :
lib/socks_sspi.c
Function:Curl_SOCKS5_gssapi_negotiate
https://github.com/siva-msft/curl/blob/0eda1cffe4f39fe489cd0e859817213df27aecf5/lib/socks_sspi.c#L539 Code extract:Instance 24 File :
lib/socks_sspi.c
Function:Curl_SOCKS5_gssapi_negotiate
https://github.com/siva-msft/curl/blob/0eda1cffe4f39fe489cd0e859817213df27aecf5/lib/socks_sspi.c#L561 Code extract:Instance 25 File :
lib/socks_sspi.c
Function:Curl_SOCKS5_gssapi_negotiate
https://github.com/siva-msft/curl/blob/0eda1cffe4f39fe489cd0e859817213df27aecf5/lib/socks_sspi.c#L573 Code extract: