]> git.proxmox.com Git - mirror_frr.git/commitdiff
Merge pull request #3371 from donaldsharp/vtysh_ospf_instance
authorRuss White <russ@riw.us>
Mon, 26 Nov 2018 12:55:49 +0000 (07:55 -0500)
committerGitHub <noreply@github.com>
Mon, 26 Nov 2018 12:55:49 +0000 (07:55 -0500)
vtysh: Don't attempt to reconnect the non-instanced ospf process

vtysh/vtysh.c

index cd78551cb40bca861ef30b16553db02a78aafb10..f57a4d9ddf0aee1e36b3ae5b2d6c7e49b835f0a7 100644 (file)
@@ -577,7 +577,7 @@ static int vtysh_execute_func(const char *line, int pager)
                                    && (cmd->daemon == vtysh_client[i].flag)) {
                                        for (vc = &vtysh_client[i]; vc;
                                             vc = vc->next)
-                                               if (vc->fd < 0)
+                                               if (vc->fd == VTYSH_WAS_ACTIVE)
                                                        vtysh_reconnect(vc);
                                }
                                if (vtysh_client[i].fd < 0