From ab3b2a9f6d22442c4620eccf56224074f614df03 Mon Sep 17 00:00:00 2001 From: Klas Lindfors Date: Thu, 23 Jan 2014 08:37:23 +0100 Subject: [PATCH] refuse challenge on command line if -t is given --- ykchalresp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ykchalresp.c b/ykchalresp.c index db0d5fa..0efeb70 100644 --- a/ykchalresp.c +++ b/ykchalresp.c @@ -133,7 +133,7 @@ static int parse_args(int argc, char **argv, } } - if (optind >= argc && !*totp) { + if ((optind >= argc && !*totp) || (optind < argc && *totp)) { /* No challenge */ fputs(usage, stderr); return 0; -- 2.39.5