summaryrefslogtreecommitdiffhomepage
path: root/cli-runopts.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2020-05-26 20:15:39 +0800
committerMatt Johnston <matt@ucc.asn.au>2020-05-26 20:15:39 +0800
commit0aefec6c89b6ba47e1256da51aa4c62e84248e7e (patch)
tree7e8329668e3eafcd20387a7302b6773711509344 /cli-runopts.c
parent6a3bc73a78cb83152a5c35bfd6bbb1b5073c9e67 (diff)
Make "dbclient -m help -c help" work
Diffstat (limited to 'cli-runopts.c')
-rw-r--r--cli-runopts.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/cli-runopts.c b/cli-runopts.c
index 7d1fffe..3654b9a 100644
--- a/cli-runopts.c
+++ b/cli-runopts.c
@@ -378,6 +378,11 @@ void cli_getopts(int argc, char ** argv) {
}
}
+#if DROPBEAR_USER_ALGO_LIST
+ /* -c help doesn't need a hostname */
+ parse_ciphers_macs();
+#endif
+
/* Done with options/flags; now handle the hostname (which may not
* start with a hyphen) and optional command */
@@ -408,10 +413,6 @@ void cli_getopts(int argc, char ** argv) {
/* And now a few sanity checks and setup */
-#if DROPBEAR_USER_ALGO_LIST
- parse_ciphers_macs();
-#endif
-
#if DROPBEAR_CLI_PROXYCMD
if (cli_opts.proxycmd) {
/* To match the common path of m_freeing it */