ssh: comment "fallthrough" in switch statement

This commit is contained in:
Daniel Stenberg 2014-10-03 23:30:05 +02:00
parent fa7d04fed4
commit d57f7d586b
1 changed files with 2 additions and 0 deletions

View File

@ -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;