summaryrefslogtreecommitdiffstats
path: root/crypto/cmp
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:25:33 +0100
commit01a17b24f6649fc192ba6bb9ea34e28ce9678e6c (patch)
treedb8f901480d8ca6948d4ed43c9c2f6c22b484be8 /crypto/cmp
parent45972000b44ce0d97adacfddb38f28710b49cfec (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)
Diffstat (limited to 'crypto/cmp')
-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 d01be8ebc7..dcad9c8941 100644
--- a/crypto/cmp/cmp_ctx.c
+++ b/crypto/cmp/cmp_ctx.c
@@ -919,13 +919,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: