diff options
author | Renato Westphal <renato@opensourcerouting.org> | 2019-05-13 20:18:57 +0200 |
---|---|---|
committer | Renato Westphal <renato@opensourcerouting.org> | 2019-05-13 20:18:57 +0200 |
commit | 8d0d863754578a5b5879d6267f07ddcec090ba00 (patch) | |
tree | c01010fd9df097e60a32095106e5622271342ea3 /lib/grammar_sandbox_main.c | |
parent | Merge pull request #4318 from manuhalo/ospf6_rid_doc_fix (diff) | |
download | frr-8d0d863754578a5b5879d6267f07ddcec090ba00.tar.xz frr-8d0d863754578a5b5879d6267f07ddcec090ba00.zip |
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 <renato@opensourcerouting.org>
Diffstat (limited to 'lib/grammar_sandbox_main.c')
-rw-r--r-- | lib/grammar_sandbox_main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/grammar_sandbox_main.c b/lib/grammar_sandbox_main.c index c9c942f9b..38494fb00 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); |