summaryrefslogtreecommitdiff
path: root/lib/vty.c
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2023-05-03 23:49:16 -0400
committerChristian Hopps <chopps@labn.net>2023-05-28 05:13:22 -0400
commitd6665cf63fec810a06958e2a277076e81ef5a026 (patch)
tree6c6c16a4fb64bc6e198ae04e9067858c44200e44 /lib/vty.c
parentbcc350971f94f20bac8a86eab2bbcc604c6646da (diff)
lib: dont be tricky with session_id just make it a session_id
- Previously was substituting a pointer to local allocated session for the session_id returned from the FE adapter. This complexity isn't needed. - Get rid of "%llu" format and the casts that came with it, instead use PRIu64 and the actual (uint64_t) type. Signed-off-by: Christian Hopps <chopps@labn.net>
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,