mirror of
https://github.com/curl/curl.git
synced 2026-07-31 14:58:02 +03:00
libssh: add NULL check for Curl_meta_get()
It really cannot return NULL in a working condition, but ... Pointed out by Coverity. Closes #17359
This commit is contained in:
parent
f7ff1d1e5e
commit
96726af95a
1 changed files with 1 additions and 1 deletions
|
|
@ -2458,7 +2458,7 @@ static CURLcode myssh_done(struct Curl_easy *data,
|
|||
CURLcode result = CURLE_OK;
|
||||
struct SSHPROTO *sshp = Curl_meta_get(data, CURL_META_SSH_EASY);
|
||||
|
||||
if(!status) {
|
||||
if(!status && sshp) {
|
||||
/* run the state-machine */
|
||||
result = myssh_block_statemach(data, sshc, sshp, FALSE);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue