diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-09-12 16:38:03 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-09-12 16:39:40 +0900 |
commit | 258e30b6406d69025f09ec09ae22f5c08de6c80b (patch) | |
tree | 700590f20a9fe62cfa301f23416f4252f18c3b0b | |
parent | 0f91e2a6ee41e144463ae5686e474445e1053873 (diff) | |
download | ruby-openssl-258e30b6406d69025f09ec09ae22f5c08de6c80b.tar.gz |
Add fallthrough comments
-rw-r--r-- | ext/openssl/ossl_pkey_ec.c | 2 | ||||
-rw-r--r-- | ext/openssl/ossl_ssl.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/ext/openssl/ossl_pkey_ec.c b/ext/openssl/ossl_pkey_ec.c index 9b461cb6..a637c323 100644 --- a/ext/openssl/ossl_pkey_ec.c +++ b/ext/openssl/ossl_pkey_ec.c @@ -288,6 +288,7 @@ static VALUE ossl_ec_key_set_private_key(VALUE self, VALUE private_key) case 0: if (bn == NULL) break; + /* fallthrough */ default: ossl_raise(eECError, "EC_KEY_set_private_key"); } @@ -334,6 +335,7 @@ static VALUE ossl_ec_key_set_public_key(VALUE self, VALUE public_key) case 0: if (point == NULL) break; + /* fallthrough */ default: ossl_raise(eECError, "EC_KEY_set_public_key"); } diff --git a/ext/openssl/ossl_ssl.c b/ext/openssl/ossl_ssl.c index 4f24a833..a32e1dcd 100644 --- a/ext/openssl/ossl_ssl.c +++ b/ext/openssl/ossl_ssl.c @@ -1621,6 +1621,7 @@ ossl_start_ssl(VALUE self, int (*func)(), const char *funcname, VALUE opts) err_msg, verify_msg); } #endif + /* fallthrough */ default: ossl_raise(eSSLError, "%s returned=%d errno=%d peeraddr=%"PRIsVALUE" state=%s", funcname, ret2, errno, peeraddr_ip_str(self), SSL_state_string_long(ssl)); @@ -1905,6 +1906,7 @@ ossl_ssl_write_internal(VALUE self, VALUE str, VALUE opts) continue; #endif if (errno) rb_sys_fail(0); + /* fallthrough */ default: ossl_raise(eSSLError, "SSL_write"); } |