The enable_system_stats() function calls smap_get_bool() on the
ovsrec_open_vswitch passed to it.  This was segmentation faulting
when 'null_cfg' defined in bridge_reconfigure() was used because
there was no Open vSwitch table.

Signed-off-by: Ethan Jackson <et...@nicira.com>
---
 vswitchd/bridge.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c
index a36705b..2c1142b 100644
--- a/vswitchd/bridge.c
+++ b/vswitchd/bridge.c
@@ -2018,6 +2018,8 @@ bridge_run(void)
     bool vlan_splinters_changed;
     struct bridge *br;
 
+    ovsrec_open_vswitch_init((struct ovsrec_open_vswitch *) &null_cfg);
+
     /* (Re)configure if necessary. */
     if (!reconfiguring) {
         ovsdb_idl_run(idl);
-- 
1.7.11.2

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to