From 5a80d9fbfe445420ffe6b649f29e2e0c412aba5d Mon Sep 17 00:00:00 2001 From: Rich Salz Date: Thu, 30 Apr 2015 11:13:49 -0400 Subject: [PATCH] Fix bug, "what mode" test was wrong. Reviewed-by: Matt Caswell --- apps/srp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/srp.c b/apps/srp.c index adc6a6f130..bbbe1a9873 100644 --- a/apps/srp.c +++ b/apps/srp.c @@ -336,7 +336,8 @@ int srp_main(int argc, char **argv) "Exactly one of the options -add, -delete, -modify -list must be specified.\n"); goto opthelp; } - if ((mode == OPT_DELETE || mode == OPT_MODIFY || OPT_ADD) && argc < 1) { + if ((mode == OPT_DELETE || mode == OPT_MODIFY || mode == OPT_ADD) + && argc < 1) { BIO_printf(bio_err, "Need at least one user for options -add, -delete, -modify. \n"); goto opthelp; -- 2.25.1