From d033e6327d1e63f5d212981fca785b5086491905 Mon Sep 17 00:00:00 2001 From: "Ondrej Zajicek (work)" Date: Tue, 26 Nov 2019 16:43:09 +0100 Subject: [PATCH] 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. --- nest/cli.c | 1 + 1 file changed, 1 insertion(+) 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;