diff options
| author | Christian Hopps <chopps@labn.net> | 2023-05-03 23:49:16 -0400 |
|---|---|---|
| committer | Christian Hopps <chopps@labn.net> | 2023-05-28 05:13:22 -0400 |
| commit | d6665cf63fec810a06958e2a277076e81ef5a026 (patch) | |
| tree | 6c6c16a4fb64bc6e198ae04e9067858c44200e44 /lib/vty.c | |
| parent | bcc350971f94f20bac8a86eab2bbcc604c6646da (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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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, |
