2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-15 14:17:18 +00:00

bridge: Segfault when missing Open vSwitch table.

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 <ethan@nicira.com>
This commit is contained in:
Ethan Jackson
2012-07-18 10:56:21 -07:00
parent 35a22d8c10
commit edce886c92

View File

@@ -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);