]> xenbits.xensource.com Git - libvirt.git/commit
network: Unconditionally initialize macmap when stopping virtual network
authorJohn Ferlan <jferlan@redhat.com>
Wed, 26 Jul 2017 11:42:51 +0000 (07:42 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 16 Aug 2017 18:17:57 +0000 (14:17 -0400)
commit4f5e32d30524bf9e2012df53bfb5eaa4b58c7061
tree5c19e2c824add6ac25cb929b88d9129f2f7dfcbc
parentf4adeae09dfba242b12098cc303d7b4482a33759
network: Unconditionally initialize macmap when stopping virtual network

Since we can only ever have one reference to obj->macmap, rather
than only clearing obj->macmap during virNetworkObjUnrefMacMap
(e.g. virtual network from networkShutdownNetwork), let's just
unconditionally clear the obj->macmap to ensure that some future
change that created it's own reference to obj->macmap wouldn't
have that reference disappear if virNetworkObjDispose got called.

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/conf/virnetworkobj.c