Remove NULL check before free
authorinoguchi <inoguchi@openbsd.org>
Thu, 6 Jan 2022 11:37:29 +0000 (11:37 +0000)
committerinoguchi <inoguchi@openbsd.org>
Thu, 6 Jan 2022 11:37:29 +0000 (11:37 +0000)
usr.bin/openssl/cms.c

index d453bcd..67ce15a 100644 (file)
@@ -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);
        }
 }