From 8b3b2859b0d61075b825c7920d5ba4dbc3cb230a Mon Sep 17 00:00:00 2001 From: inoguchi Date: Thu, 6 Jan 2022 11:37:29 +0000 Subject: [PATCH] Remove NULL check before free --- usr.bin/openssl/cms.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/usr.bin/openssl/cms.c b/usr.bin/openssl/cms.c index d453bcd139f..67ce15ab566 100644 --- a/usr.bin/openssl/cms.c +++ b/usr.bin/openssl/cms.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cms.c,v 1.24 2022/01/05 13:41:12 inoguchi Exp $ */ +/* $OpenBSD: cms.c,v 1.25 2022/01/06 11:37:29 inoguchi Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project. */ @@ -1882,8 +1882,7 @@ receipt_request_print(BIO *out, CMS_ContentInfo *cms) BIO_puts(out, " Receipts To:\n"); gnames_stack_print(out, rto); } - if (rr != NULL) - CMS_ReceiptRequest_free(rr); + CMS_ReceiptRequest_free(rr); } } -- 2.20.1