diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2021-12-07 18:02:19 +0100 |
---|---|---|
committer | Dr. David von Oheimb <dev@ddvo.net> | 2021-12-13 09:52:02 +0100 |
commit | 61fa00a4d03f6808389bc1847937f72d184f0627 (patch) | |
tree | f6ac23563b8b032437dbc04628ede64bea93224f /apps/cmp.c | |
parent | e46997111af3a11632df411b01d62fd39cc3faaf (diff) |
APPS/cmp: Simplify read_write_req_resp() - 'req' arg must not be NULL anyway
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17251)
Diffstat (limited to 'apps/cmp.c')
-rw-r--r-- | apps/cmp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/cmp.c b/apps/cmp.c index e35626ebb2..d6ab2a249b 100644 --- a/apps/cmp.c +++ b/apps/cmp.c @@ -789,8 +789,7 @@ static OSSL_CMP_MSG *read_write_req_resp(OSSL_CMP_CTX *ctx, OSSL_CMP_PKIHEADER *hdr; const char *prev_opt_rspin = opt_rspin; - if (req != NULL && opt_reqout != NULL - && !write_PKIMESSAGE(req, &opt_reqout)) + if (opt_reqout != NULL && !write_PKIMESSAGE(req, &opt_reqout)) goto err; if (opt_reqin != NULL && opt_rspin == NULL) { if ((req_new = read_PKIMESSAGE(&opt_reqin)) == NULL) |