diff --git a/lib/vssh/libssh.c b/lib/vssh/libssh.c index 30fde410dd..14568e67dd 100644 --- a/lib/vssh/libssh.c +++ b/lib/vssh/libssh.c @@ -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); }