summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladislav Grishenko <themiron@mail.ru>2021-05-25 17:37:17 +0500
committerVladislav Grishenko <themiron@mail.ru>2021-05-25 17:37:17 +0500
commit26ea71ec55687d897c9aabed22ebaec67dbe56a3 (patch)
treef78c20e3ac2a75f06a74ec6c066c675a57a2e828
parent35a4901c4f8a2bb3fadbaf1fbe3636c01a22e9d7 (diff)
downloadaccel-ppp-26ea71ec55687d897c9aabed22ebaec67dbe56a3.tar.gz
accel-ppp-26ea71ec55687d897c9aabed22ebaec67dbe56a3.zip
cli: fix absent OK status for 'show version'
fix 4b52c1a3590b43ca892c460d9b1478e1da742156
-rw-r--r--accel-pppd/cli/std_cmd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/accel-pppd/cli/std_cmd.c b/accel-pppd/cli/std_cmd.c
index e22ea76..e4eddb2 100644
--- a/accel-pppd/cli/std_cmd.c
+++ b/accel-pppd/cli/std_cmd.c
@@ -87,6 +87,8 @@ static void show_stat_help(char * const *fields, int fields_cnt, void *client)
static int show_version_exec(const char *cmd, char * const *fields, int fields_cnt, void *client)
{
cli_sendv(client, "%s\r\n", ACCEL_PPP_VERSION);
+
+ return CLI_CMD_OK;
}
static void show_version_help(char * const *fields, int fields_cnt, void *client)