From: Rich Salz Date: Thu, 30 Apr 2015 15:13:49 +0000 (-0400) Subject: Fix bug, "what mode" test was wrong. X-Git-Tag: OpenSSL_1_1_0-pre1~1247 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=5a80d9fbfe445420ffe6b649f29e2e0c412aba5d Fix bug, "what mode" test was wrong. Reviewed-by: Matt Caswell --- 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;