bridge: Fix a segmentation fault in bridge_init_ofproto().
authorEthan Jackson <ethan@nicira.com>
Tue, 6 Nov 2012 03:00:07 +0000 (19:00 -0800)
committerEthan Jackson <ethan@nicira.com>
Tue, 6 Nov 2012 20:40:05 +0000 (12:40 -0800)
commitb099cd5f555a22646fe0be565ccef3c0cf9dcd87
treec8cce9e3c0f8a4846322344110d2f0cdc718690a
parent3c82d0682ab7661d218545e9ba06e52f1cf44e43
bridge: Fix a segmentation fault in bridge_init_ofproto().

When the database is initially created there may no be rows in the
Open_vSwitch table.  In this case, the ovsrec_open_vswitch passed
to bridge_init_ofproto() is NULL and causes a segmentation fault.

Signed-off-by: Ethan Jackson <ethan@nicira.com>
vswitchd/bridge.c