ovn-controller: Fix invalid br_int_name handling.
authorRussell Bryant <rbryant@redhat.com>
Fri, 1 May 2015 18:22:01 +0000 (14:22 -0400)
committerJustin Pettit <jpettit@nicira.com>
Fri, 1 May 2015 21:56:41 +0000 (14:56 -0700)
commit71bf929e647acbe4cf186ebf72ca10f10317817c
tree2e809f0f53cbcdb3769759918d4b20993dc98cf3
parente4901fe0672422ae575d5d5fbac618c6cd25a862
ovn-controller: Fix invalid br_int_name handling.

While doing some testing, I noticed the following error message:

  Integration bridge '<garbage>' dissapeared

The reason is that the code kept around the value of the "ovn-bridge"
configuration without copying it.  The result was pointing to bogus
memory.  You would only see this if you set "ovn_bridge".  If you
relied on the default, the bug would not occur.

Signed-off-by: Russell Bryant <rbryant@redhat.com>
Acked-by: Kyle Mestery <mestery@mestery.com>
Signed-off-by: Justin Pettit <jpettit@nicira.com>
ovn/controller/ovn-controller.c
ovn/controller/ovn-controller.h