]> git.puffer.fish Git - matthieu/frr.git/commit
lib: mgmtd: avoid recursion with vty_close and add error log
authorChristian Hopps <chopps@labn.net>
Mon, 12 Jun 2023 02:19:54 +0000 (22:19 -0400)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Thu, 22 Jun 2023 21:56:44 +0000 (21:56 +0000)
commitc874d567cce8932bf1238a5cc6d5427a18a53c8c
tree8f33d7e9beaaf69b43b4940fe82d70f8caf1cc29
parentcfca317c597b61049ba9123281b393ade48ca1b6
lib: mgmtd: avoid recursion with vty_close and add error log

Avoid recursion into vty_close() when being notified of a session closure that
happened inside vty_close().

If a vty is closed with outstanding config yet to be commited
issue a warning that it is being lost.

Signed-off-by: Christian Hopps <chopps@labn.net>
(cherry picked from commit 4307fdd07047dc2f7c9daef7a74af6cddf635c34)
lib/vty.c