summaryrefslogtreecommitdiff
path: root/lib/vty.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/vty.c')
-rw-r--r--lib/vty.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/vty.c b/lib/vty.c
index a2c1dbebc1..6164126fb4 100644
--- a/lib/vty.c
+++ b/lib/vty.c
@@ -1633,6 +1633,8 @@ struct vty *vty_new(void)
new->pass_fd = -1;
if (mgmt_lib_hndl) {
+ if (!mgmt_client_id_next)
+ mgmt_client_id_next++;
new->mgmt_client_id = mgmt_client_id_next++;
if (mgmt_fe_create_client_session(
mgmt_lib_hndl, new->mgmt_client_id,