summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>2020-11-13 21:32:31 +0100
committerDr. David von Oheimb <David.von.Oheimb@siemens.com>2020-11-20 13:36:30 +0100
commit8c5c2fa544e8ca05bb756e99dbc9cb5ed82db37c (patch)
tree2d0f3e595a1bb73a1ecd08f8842248eddece611f /apps
parent6fd8313589b3fd55e31f65097007c3c1fdbe5021 (diff)
CMP: prevent misleading PKIStatusInfo output if not response available
Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/13409)
Diffstat (limited to 'apps')
-rw-r--r--apps/cmp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/cmp.c b/apps/cmp.c
index b1813df9bc..ccb61ab497 100644
--- a/apps/cmp.c
+++ b/apps/cmp.c
@@ -2870,6 +2870,8 @@ int cmp_main(int argc, char **argv)
default:
break;
}
+ if (OSSL_CMP_CTX_get_status(cmp_ctx) < 0)
+ goto err; /* we got no response, maybe even did not send request */
{
/* print PKIStatusInfo */