projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix Coverity 1520485: logically dead code
[openssl.git]
/
crypto
/
cmp
/
cmp_ctx.c
diff --git
a/crypto/cmp/cmp_ctx.c
b/crypto/cmp/cmp_ctx.c
index d01be8ebc75c76f004aff018347aa30c9d16d43d..dcad9c89415f508399f44515e5a7eefa933dd44b 100644
(file)
--- 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:
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:
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:
ctx->total_timeout = val;
break;
case OSSL_CMP_OPT_PERMIT_TA_IN_EXTRACERTS_FOR_IR: