diff --git a/lib/ssh.c b/lib/ssh.c index 76389a03639711..f468e4c8487f5b 100644 --- a/lib/ssh.c +++ b/lib/ssh.c @@ -588,8 +588,10 @@ static CURLcode ssh_knownhost(struct connectdata *conn) switch(rc) { default: /* unknown return codes will equal reject */ + /* FALLTHROUGH */ case CURLKHSTAT_REJECT: state(conn, SSH_SESSION_FREE); + /* FALLTHROUGH */ case CURLKHSTAT_DEFER: /* DEFER means bail out but keep the SSH_HOSTKEY state */ result = sshc->actualcode = CURLE_PEER_FAILED_VERIFICATION;