]> git.puffer.fish Git - matthieu/frr.git/commit
mgmtd: fix commit request overwrite
authorIgor Ryzhov <iryzhov@nfware.com>
Thu, 25 Jan 2024 11:54:45 +0000 (13:54 +0200)
committerChristian Hopps <chopps@labn.net>
Fri, 26 Jan 2024 17:34:46 +0000 (12:34 -0500)
commitd79ca934eb4c8084324ae8a570fc68d2b861b47d
treec196aa4bf4462ed8add03cf9f33909848df759d3
parentb92ad5046e9dd7c4b335906a0bf3b38a3ff55454
mgmtd: fix commit request overwrite

There are places, where we can receive an existing commit transaction.
If we don't check that the request already exists, it gets overwritten
and we start having problems with transaction refcounters. Forbid having
multiple configuration sessions simultaneously.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
mgmtd/mgmt_be_adapter.c
mgmtd/mgmt_fe_adapter.c
mgmtd/mgmt_txn.c
mgmtd/mgmt_txn.h