]> git.puffer.fish Git - mirror/frr.git/commitdiff
tests: add missing qobj_init() call
authorDavid Lamparter <equinox@opensourcerouting.org>
Thu, 15 Dec 2016 23:01:20 +0000 (00:01 +0100)
committerDavid Lamparter <equinox@opensourcerouting.org>
Fri, 16 Dec 2016 19:42:01 +0000 (20:42 +0100)
This was SEGV'ing the test in bgp_master_init() since QOBJ_REG was used
without qobj_init() being called first.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
tests/aspath_test.c

index 9d595807fee480de285edf289c764e7f273b958b..f3999cbcfffe5e99b6ca7d710bd32bca7227555b 100644 (file)
@@ -1331,6 +1331,7 @@ int
 main (void)
 {
   int i = 0;
+  qobj_init ();
   bgp_master_init ();
   master = bm->master;
   bgp_option_set (BGP_OPT_NO_LISTEN);