summaryrefslogtreecommitdiff
path: root/ext/openssl/ossl_pkey_ec.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-09-12 16:38:03 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-09-12 22:49:07 +0900
commit289f3a79b5257931004252515a56a783132941df (patch)
tree9c494e74138c9995c76ba6e410002d9756e4bf62 /ext/openssl/ossl_pkey_ec.c
parent6920f3dc964052112795dc9c5c4f9650807726c8 (diff)
[ruby/openssl] Add fallthrough comments
https://github.com/ruby/openssl/commit/258e30b640
Diffstat (limited to 'ext/openssl/ossl_pkey_ec.c')
-rw-r--r--ext/openssl/ossl_pkey_ec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/openssl/ossl_pkey_ec.c b/ext/openssl/ossl_pkey_ec.c
index 26c627f232..a4a6143676 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");
}