From: Igor Ryzhov Date: Wed, 27 Jan 2021 23:41:42 +0000 (+0300) Subject: vtysh: fix show_per_daemon for multi-instance ospfd X-Git-Tag: base_8.0~346^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=a4e2dac168da8c3884288f023451308f0bacb726;p=mirror%2Ffrr.git vtysh: fix show_per_daemon for multi-instance ospfd Signed-off-by: Igor Ryzhov --- diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c index e026a28628..b41364c04d 100644 --- a/vtysh/vtysh.c +++ b/vtysh/vtysh.c @@ -2693,7 +2693,7 @@ static int show_per_daemon(struct vty *vty, struct cmd_token **argv, int argc, char *line = do_prepend(vty, argv, argc); for (i = 0; i < array_size(vtysh_client); i++) - if (vtysh_client[i].fd >= 0) { + if (vtysh_client[i].fd >= 0 || vtysh_client[i].next) { vty_out(vty, headline, vtysh_client[i].name); ret = vtysh_client_execute(&vtysh_client[i], line); vty_out(vty, "\n");