summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorKinichiro Inoguchi <inoguchi@cvs.openbsd.org>2022-01-06 11:37:30 +0000
committerKinichiro Inoguchi <inoguchi@cvs.openbsd.org>2022-01-06 11:37:30 +0000
commit1a2ee852e2a4da34022081c3117be98198fa24aa (patch)
treef9f91fe2327cb1a0f717b662c93ec2ed78a1b1ef /usr.bin
parent298144ff798cbe0e00cd6a8750d2dbd092143e77 (diff)
Remove NULL check before free
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/openssl/cms.c5
1 files 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);
}
}