From: Renato Westphal Date: Mon, 13 May 2019 18:18:57 +0000 (-0300) Subject: lib: fix crash in the CLI grammar sandbox X-Git-Tag: base_7.2~359^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=8d0d863754578a5b5879d6267f07ddcec090ba00;p=matthieu%2Ffrr.git lib: fix crash in the CLI grammar sandbox 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 --- diff --git a/lib/grammar_sandbox_main.c b/lib/grammar_sandbox_main.c index c9c942f9bf..38494fb007 100644 --- a/lib/grammar_sandbox_main.c +++ b/lib/grammar_sandbox_main.c @@ -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);