diff options
author | Pauli <pauli@openssl.org> | 2023-01-24 12:23:37 +1100 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2023-01-26 10:26:05 +0100 |
commit | 168972055815b7082deffbe8bbb12286c2d5aa43 (patch) | |
tree | 93c5911309b6269d6770b187566ae9fb50752953 /crypto | |
parent | 0c76c217b7c9b778392f1e015ccb4e0f9265dfc7 (diff) |
Fix Coverity 1520485: logically dead code
The check is unnecessary as the condition is already checked
before the switch statement.
Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20121)
(cherry picked from commit 01a17b24f6649fc192ba6bb9ea34e28ce9678e6c)
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/cmp/cmp_ctx.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/crypto/cmp/cmp_ctx.c b/crypto/cmp/cmp_ctx.c index 505d227180..a83f9c68a1 100644 --- a/crypto/cmp/cmp_ctx.c +++ b/crypto/cmp/cmp_ctx.c @@ -1077,13 +1077,9 @@ int OSSL_CMP_CTX_set_option(OSSL_CMP_CTX *ctx, int opt, int val) ctx->keep_alive = val; break; case OSSL_CMP_OPT_MSG_TIMEOUT: - if (val < 0) - val = 0; ctx->msg_timeout = val; break; case OSSL_CMP_OPT_TOTAL_TIMEOUT: - if (val < 0) - val = 0; ctx->total_timeout = val; break; case OSSL_CMP_OPT_PERMIT_TA_IN_EXTRACERTS_FOR_IR: |