Skip to content

Commit

Permalink
ssh: comment "fallthrough" in switch statement
Browse files Browse the repository at this point in the history
  • Loading branch information
bagder committed Oct 3, 2014
1 parent fa7d04f commit d57f7d5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/ssh.c
Expand Up @@ -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;
Expand Down

0 comments on commit d57f7d5

Please sign in to comment.