summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorPauli <pauli@openssl.org>2023-01-24 12:23:37 +1100
committerTomas Mraz <tomas@openssl.org>2023-01-26 10:26:20 +0100
commitd646730b89c3c5e26a0eb24ed62a755748be55f7 (patch)
treea632f639b3a2174447932a2aa3e120e277ae4e9e /crypto
parent84eace37362913bc091069dbdefdd798e91982f2 (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.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/crypto/cmp/cmp_ctx.c b/crypto/cmp/cmp_ctx.c
index 9f1d0ee882..4b610b746e 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: