Fix bug, "what mode" test was wrong.

Reviewed-by: Matt Caswell <matt@openssl.org>
This commit is contained in:
Rich Salz 2015-04-30 11:13:49 -04:00
parent a3ed492f58
commit 5a80d9fbfe

View File

@ -336,7 +336,8 @@ int srp_main(int argc, char **argv)
"Exactly one of the options -add, -delete, -modify -list must be specified.\n"); "Exactly one of the options -add, -delete, -modify -list must be specified.\n");
goto opthelp; 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, BIO_printf(bio_err,
"Need at least one user for options -add, -delete, -modify. \n"); "Need at least one user for options -add, -delete, -modify. \n");
goto opthelp; goto opthelp;