]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/vty.c
lib: dont be tricky with session_id just make it a session_id
[mirror_frr.git] / lib / vty.c
index a2c1dbebc1b2d11d2bb846dfc3f7cbd608384d5d..6164126fb4ce320b595a25f3f0404f0a9fa0b25f 100644 (file)
--- 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,