]> granicus.if.org Git - curl/commitdiff
ssh: comment "fallthrough" in switch statement
authorDaniel Stenberg <daniel@haxx.se>
Fri, 3 Oct 2014 21:30:05 +0000 (23:30 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 3 Oct 2014 21:30:05 +0000 (23:30 +0200)
lib/ssh.c

index 76389a0363971126b3a5d0b589be24a5c7f18f50..f468e4c8487f5b295e6e7aac4151a5e536660437 100644 (file)
--- 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;