]> 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)
committerChristian Hopps <chopps@labn.net>
Mon, 12 Jun 2023 06:32:29 +0000 (02:32 -0400)
commit4307fdd07047dc2f7c9daef7a74af6cddf635c34
treed67f5607d710eea8b1cf9080c73f441ea9fe2c44
parent315e9032e4087494063bbc6f7f52ec8c3d3ce757
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>
lib/vty.c