]> xenbits.xensource.com Git - libvirt.git/commit
network: Fix NULL dereference during error recovery
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 14 Apr 2011 12:03:46 +0000 (14:03 +0200)
committerLaine Stump <laine@laine.org>
Thu, 14 Apr 2011 14:56:17 +0000 (10:56 -0400)
commit2444c411cabf4df583c4116dd730e8583eb19c69
treed50af206b48c0df6b32193459878af929599c529
parent1ef5a3d37e1c8eb1922de9c5ebd9bac02d62676c
network: Fix NULL dereference during error recovery

This fixes: https://bugzilla.redhat.com/show_bug.cgi?id=696660

While starting a network, if brSetForwardDelay() fails, we go to err1
where we want to access macTapIfName variable which was just
VIR_FREE'd a few lines above. Instead, keep macTapIfName until we are
certain of success.
src/network/bridge_driver.c