diff options
| author | David Lamparter <equinox@diac24.net> | 2019-02-18 13:06:39 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-18 13:06:39 +0100 |
| commit | 2def2eeb05c46f53cf036a32bafe6b0a99b6196c (patch) | |
| tree | 1ad91c5dee4e29749929e257d2df4d68e603be2a | |
| parent | eea14ead8a994e63090c105c286365086de3a831 (diff) | |
| parent | b84bce2ad145ea70cc65345a1f18ca14652cfeb2 (diff) | |
Merge pull request #3807 from donaldsharp/vtysh_ospf_6.0
[6.0] vtysh: Don't attempt to reconnect the non-instanced ospf process
| -rw-r--r-- | vtysh/vtysh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c index 8f998f84d2..b42b56e9ef 100644 --- a/vtysh/vtysh.c +++ b/vtysh/vtysh.c @@ -576,7 +576,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 |
