Skip to content

Commit

Permalink
lib: fix crash in the CLI grammar sandbox
Browse files Browse the repository at this point in the history
The CLI grammer sandbox needs to initialize the northbound subsystem
otherwise the running_config global variable won't be set, which
leads to crashes.

Fixes FRRouting#4319.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
  • Loading branch information
rwestphal authored and lkrishnamoor committed May 29, 2019
1 parent afe8b35 commit 854e4b6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/grammar_sandbox_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ int main(int argc, char **argv)

vty_init(master);
memory_init();
yang_init();
nb_init(master, NULL, 0);

vty_stdio(vty_do_exit);

Expand Down

0 comments on commit 854e4b6

Please sign in to comment.