summaryrefslogtreecommitdiffstats
path: root/apps/pkcs7.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/pkcs7.c')
-rw-r--r--apps/pkcs7.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/pkcs7.c b/apps/pkcs7.c
index 1ed0b01339..ad8330d42f 100644
--- a/apps/pkcs7.c
+++ b/apps/pkcs7.c
@@ -191,7 +191,8 @@ int pkcs7_main(int argc, char **argv)
}
}
argc = opt_num_rest();
- argv = opt_rest();
+ if (argc != 0)
+ goto opthelp;
in = bio_open_default(infile, 'r', informat);
if (in == NULL)