From b532d35b5c97a2900f8511f3ecbf45c9342cfcba Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 15 Apr 2021 17:46:24 +0200 Subject: [PATCH] libssh2: fix Value stored to 'sshp' is never read Pointed out by scan-build Closes #6900 --- lib/vssh/libssh2.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/vssh/libssh2.c b/lib/vssh/libssh2.c index 9d188d058..2d431ce34 100644 --- a/lib/vssh/libssh2.c +++ b/lib/vssh/libssh2.c @@ -3054,17 +3054,15 @@ static CURLcode ssh_connect(struct Curl_easy *data, bool *done) #ifdef CURL_LIBSSH2_DEBUG curl_socket_t sock; #endif - struct SSHPROTO *sshp = data->req.p.ssh; struct ssh_conn *sshc; CURLcode result; struct connectdata *conn = data->conn; /* initialize per-handle data if not already */ - if(!sshp) { + if(!data->req.p.ssh) { result = ssh_setup_connection(data, conn); if(result) return result; - sshp = data->req.p.ssh; } /* We default to persistent connections. We set this already in this connect