Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib, mgmtd: don't register NB config callbacks in mgmtd #15300

Merged
merged 1 commit into from
Feb 5, 2024

Conversation

idryzhov
Copy link
Contributor

@idryzhov idryzhov commented Feb 4, 2024

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.

@frrbot frrbot bot added libfrr mgmt FRR Management Infra labels Feb 4, 2024
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 <[email protected]>
@idryzhov idryzhov force-pushed the mgmtd-cli-callbacks branch from 0091251 to f359dc8 Compare February 4, 2024 20:25
@idryzhov idryzhov added the bugfix label Feb 4, 2024
@ton31337 ton31337 added this to the 10.0 milestone Feb 5, 2024
@donaldsharp donaldsharp merged commit 71ea80b into FRRouting:master Feb 5, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants