summaryrefslogtreecommitdiff
path: root/nest/cli.c
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2019-11-26 16:43:09 +0100
committerOndrej Zajicek (work) <santiago@crfreenet.org>2019-11-26 16:43:09 +0100
commitd033e6327d1e63f5d212981fca785b5086491905 (patch)
tree12c18d6fb0876012680b0ce9712450d6fe488b48 /nest/cli.c
parent0f88200247cc61175c7a1d98a3e935aedce93f3b (diff)
CLI: Fix continuation lines after final one
Continuation lines may use short form (with space instead of message number), but this should not be done when previous line is final. Thanks to Kenth Eriksson for the bugreport and analysis.
Diffstat (limited to 'nest/cli.c')
-rw-r--r--nest/cli.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/nest/cli.c b/nest/cli.c
index 24962f10..b54a0d76 100644
--- a/nest/cli.c
+++ b/nest/cli.c
@@ -143,6 +143,7 @@ cli_printf(cli *c, int code, char *msg, ...)
{
size = bsprintf(buf, "%04d ", cd);
errcode = 8000;
+ cd = 0; /* Final message - no more continuation lines */
}
c->last_reply = cd;