mirror of
https://github.com/moparisthebest/curl
synced 2025-01-09 13:08:00 -05:00
libssh2: fix Value stored to 'sshp' is never read
Pointed out by scan-build Closes #6900
This commit is contained in:
parent
0d7c55bd57
commit
b532d35b5c
@ -3054,17 +3054,15 @@ static CURLcode ssh_connect(struct Curl_easy *data, bool *done)
|
|||||||
#ifdef CURL_LIBSSH2_DEBUG
|
#ifdef CURL_LIBSSH2_DEBUG
|
||||||
curl_socket_t sock;
|
curl_socket_t sock;
|
||||||
#endif
|
#endif
|
||||||
struct SSHPROTO *sshp = data->req.p.ssh;
|
|
||||||
struct ssh_conn *sshc;
|
struct ssh_conn *sshc;
|
||||||
CURLcode result;
|
CURLcode result;
|
||||||
struct connectdata *conn = data->conn;
|
struct connectdata *conn = data->conn;
|
||||||
|
|
||||||
/* initialize per-handle data if not already */
|
/* initialize per-handle data if not already */
|
||||||
if(!sshp) {
|
if(!data->req.p.ssh) {
|
||||||
result = ssh_setup_connection(data, conn);
|
result = ssh_setup_connection(data, conn);
|
||||||
if(result)
|
if(result)
|
||||||
return result;
|
return result;
|
||||||
sshp = data->req.p.ssh;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* We default to persistent connections. We set this already in this connect
|
/* We default to persistent connections. We set this already in this connect
|
||||||
|
Loading…
Reference in New Issue
Block a user