From 61fa00a4d03f6808389bc1847937f72d184f0627 Mon Sep 17 00:00:00 2001 From: "Dr. David von Oheimb" Date: Tue, 7 Dec 2021 18:02:19 +0100 Subject: APPS/cmp: Simplify read_write_req_resp() - 'req' arg must not be NULL anyway Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/17251) --- apps/cmp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'apps/cmp.c') 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) -- cgit v1.2.3