vswitchd: Avoid segfault when creating a bridge fails.
authorBen Pfaff <blp@nicira.com>
Thu, 3 Dec 2009 23:14:56 +0000 (15:14 -0800)
committerBen Pfaff <blp@nicira.com>
Thu, 3 Dec 2009 23:14:56 +0000 (15:14 -0800)
commitfa33d64a5797e59d61fd3d12257b27b5565fc587
tree122007cd627414bbf432739400ba123fbe644011
parentf016b27e28069879777a5df2cb0bbfcd399c643c
vswitchd: Avoid segfault when creating a bridge fails.

bridge_create() can return a null pointer if creating the bridge fails, so
check for that and don't dereference it in that case.

Thank to Jeremy Stribling for reporting the problem.
vswitchd/bridge.c