diff options
Diffstat (limited to 'apps/s_client.c')
-rw-r--r-- | apps/s_client.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/s_client.c b/apps/s_client.c index e0748496de..b905fbd3ec 100644 --- a/apps/s_client.c +++ b/apps/s_client.c @@ -1473,8 +1473,7 @@ int s_client_main(int argc, char **argv) } /* Optional argument is connect string if -connect not used. */ - argc = opt_num_rest(); - if (argc == 1) { + if (opt_num_rest() == 1) { /* Don't allow -connect and a separate argument. */ if (connectstr != NULL) { BIO_printf(bio_err, @@ -1484,7 +1483,7 @@ int s_client_main(int argc, char **argv) } connect_type = use_inet; freeandcopy(&connectstr, *opt_rest()); - } else if (argc != 0) { + } else if (!opt_check_rest_arg(NULL)) { goto opthelp; } if (!app_RAND_load()) |