Commit b6adfa04 authored by Matt Caswell's avatar Matt Caswell
Browse files

Fix a switch statement fallthrough



SSL_trace() has a case which was inadvertently falling through.

Reviewed-by: default avatarRichard Levitte <levitte@openssl.org>
Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4888)

(cherry picked from commit 5bfb357a)
parent 78e9e3f9
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1247,13 +1247,15 @@ void SSL_trace(int write_p, int version, int content_type,
        break;

    case SSL3_RT_ALERT:
        if (msglen != 2)
        if (msglen != 2) {
            BIO_puts(bio, "    Illegal Alert Length\n");
        else {
        } else {
            BIO_printf(bio, "    Level=%s(%d), description=%s(%d)\n",
                       SSL_alert_type_string_long(msg[0] << 8),
                       msg[0], SSL_alert_desc_string_long(msg[1]), msg[1]);
        }
        break;

    case TLS1_RT_HEARTBEAT:
        ssl_print_heartbeat(bio, 4, msg, msglen);
        break;