ofproto: Avoid null pointer dereference if in_band_create() fails.
authorBen Pfaff <blp@nicira.com>
Wed, 26 May 2010 20:37:57 +0000 (13:37 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 27 May 2010 16:34:42 +0000 (09:34 -0700)
commit40cae6703c5f65b423f57ce1cee28963e2687fd8
tree0d7976e8c92ebf6cee0631f1d637f6ee42ba35ca
parent487ec65f157060b83ee050dc516ddd792574543b
ofproto: Avoid null pointer dereference if in_band_create() fails.

in_band_create() can fail if something goes wrong with the network device
that represents the local port.  In that case update_in_band_remotes()
should not call in_band_set_remotes(), but it did anyway.  This commit fixes
it.

Reported-by: Tom Everman <teverman@google.com>
ofproto/ofproto.c