]> git.puffer.fish Git - matthieu/frr.git/commit
lib, mgmtd: don't register NB config callbacks in mgmtd
authorIgor Ryzhov <iryzhov@nfware.com>
Sun, 4 Feb 2024 19:52:47 +0000 (21:52 +0200)
committerIgor Ryzhov <iryzhov@nfware.com>
Sun, 4 Feb 2024 20:25:37 +0000 (22:25 +0200)
commitf359dc8ce050098d14c771bc2c19b0e94553d365
tree739bdffa6d4b2d380a226011a15e561acbd8f5c7
parent273356eac5d5588bfb1636787cb570a11576af37
lib, mgmtd: don't register NB config callbacks in mgmtd

mgmtd is supposed to only register CLI callbacks. If configuration
callbacks are registered, they are getting called on startup when mgmtd
reads config files, and they can use infrastructure that is not
initialized on mgmtd, or allocate some memory that is never freed.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
lib/if.c
lib/if.h
lib/routing_nb.c
lib/routing_nb.h
lib/vrf.c
lib/vrf.h
mgmtd/mgmt_main.c