summaryrefslogtreecommitdiffstats
path: root/apps/pkeyutl.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/pkeyutl.c')
-rw-r--r--apps/pkeyutl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/pkeyutl.c b/apps/pkeyutl.c
index 5a2827b399..8e1177738e 100644
--- a/apps/pkeyutl.c
+++ b/apps/pkeyutl.c
@@ -225,7 +225,8 @@ int pkeyutl_main(int argc, char **argv)
}
}
argc = opt_num_rest();
- argv = opt_rest();
+ if (argc != 0)
+ goto opthelp;
if (inkey == NULL ||
(peerkey != NULL && pkey_op != EVP_PKEY_OP_DERIVE))