diff options
author | Dane (4cad@silvertoque) <dslh.4cad@gmail.com> | 2020-02-19 03:38:12 +0100 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2020-02-20 09:53:50 +0100 |
commit | 1f2235ea4e48a48f0c06406c22c8ae31a6ccaae6 (patch) | |
tree | 511a3cb2171b4c7539e97f768ac906294c057234 /crypto/evp/bio_b64.c | |
parent | Handle max_fragment_length overflow for DTLS (diff) | |
download | openssl-1f2235ea4e48a48f0c06406c22c8ae31a6ccaae6.tar.xz openssl-1f2235ea4e48a48f0c06406c22c8ae31a6ccaae6.zip |
Remove unneeded switch statement to fix warning
https://github.com/openssl/openssl/issues/10958
CLA: trivial
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/11125)
Diffstat (limited to 'crypto/evp/bio_b64.c')
-rw-r--r-- | crypto/evp/bio_b64.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/crypto/evp/bio_b64.c b/crypto/evp/bio_b64.c index aef9a85459..5f9d3f094b 100644 --- a/crypto/evp/bio_b64.c +++ b/crypto/evp/bio_b64.c @@ -534,17 +534,12 @@ static long b64_ctrl(BIO *b, int cmd, long num, void *ptr) static long b64_callback_ctrl(BIO *b, int cmd, BIO_info_cb *fp) { - long ret = 1; BIO *next = BIO_next(b); if (next == NULL) return 0; - switch (cmd) { - default: - ret = BIO_callback_ctrl(next, cmd, fp); - break; - } - return ret; + + return BIO_callback_ctrl(next, cmd, fp); } static int b64_puts(BIO *b, const char *str) |