mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-09 12:48:43 +00:00
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.
This commit is contained in:
parent
0f88200247
commit
d033e6327d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user