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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user