We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95306e2 commit d12e84bCopy full SHA for d12e84b
lib/vty.c
@@ -4154,11 +4154,6 @@ void vty_terminate(void)
4154
{
4155
struct vty *vty;
4156
4157
- if (mgmt_fe_client) {
4158
- mgmt_fe_client_destroy(mgmt_fe_client);
4159
- mgmt_fe_client = NULL;
4160
- }
4161
-
4162
memset(vty_cwd, 0x00, sizeof(vty_cwd));
4163
4164
vty_reset();
@@ -4178,5 +4173,10 @@ void vty_terminate(void)
4178
4173
vtys_fini(vtysh_sessions);
4179
4174
vtys_init(vtysh_sessions);
4180
4175
4176
+ if (mgmt_fe_client) {
4177
+ mgmt_fe_client_destroy(mgmt_fe_client);
+ mgmt_fe_client = NULL;
+ }
+
4181
vty_serv_stop();
4182
}
0 commit comments