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 #4319.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
  • Loading branch information
rwestphal committed May 13, 2019
1 parent 4ac9d2c commit 8d0d863
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 8d0d863

Please sign in to comment.