aboutsummaryrefslogtreecommitdiff
path: root/apps/mac.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/mac.c')
-rw-r--r--apps/mac.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/mac.c b/apps/mac.c
index e751dcf..ea75b33 100644
--- a/apps/mac.c
+++ b/apps/mac.c
@@ -98,13 +98,12 @@ opthelp:
break;
}
}
+
+ /* One argument, the MAC name. */
argc = opt_num_rest();
argv = opt_rest();
-
- if (argc != 1) {
- BIO_printf(bio_err, "Invalid number of extra arguments\n");
+ if (argc != 1)
goto opthelp;
- }
mac = EVP_MAC_fetch(NULL, argv[0], NULL);
if (mac == NULL) {