aboutsummaryrefslogtreecommitdiff
path: root/demos/cms/cms_ddec.c
diff options
context:
space:
mode:
Diffstat (limited to 'demos/cms/cms_ddec.c')
-rw-r--r--demos/cms/cms_ddec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/cms/cms_ddec.c b/demos/cms/cms_ddec.c
index d119e9722226..dd8ef90b6e3f 100644
--- a/demos/cms/cms_ddec.c
+++ b/demos/cms/cms_ddec.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2008-2023 The OpenSSL Project Authors. All Rights Reserved.
+ * Copyright 2008-2025 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
@@ -58,7 +58,7 @@ int main(int argc, char **argv)
/* Open file containing detached content */
dcont = BIO_new_file("smencr.out", "rb");
- if (!in)
+ if (dcont == NULL)
goto err;
out = BIO_new_file("encrout.txt", "w");