bridge: Segfault when missing Open vSwitch table.
authorEthan Jackson <ethan@nicira.com>
Wed, 18 Jul 2012 17:56:21 +0000 (10:56 -0700)
committerEthan Jackson <ethan@nicira.com>
Wed, 18 Jul 2012 18:17:07 +0000 (11:17 -0700)
commitedce886c92dc34797a36fd9dd20c530e1799f082
tree08253b2d76847aa367a5383fe3bc2a037ae65788
parent35a22d8c10ae5ab8d0720864f552a21168b08375
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>
vswitchd/bridge.c