]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Only attempt removal of the rule allowing tftp if it was added
authorLaine Stump <laine@laine.org>
Thu, 28 Oct 2010 02:45:43 +0000 (22:45 -0400)
committerLaine Stump <laine@laine.org>
Thu, 28 Oct 2010 13:54:47 +0000 (09:54 -0400)
commit0111cebb5a430b67e6579efe0a0bc0b39d6002c3
treec8b70f5960bfe823de7a0e0aa6e4521ec33be6ce
parent1dd49e921f24177de8cd8dfae32f2f77701343f8
Only attempt removal of the rule allowing tftp if it was added

During virtual network startup, the iptables rule that allows tftp
traffic is only added if network->def->tftproot is non-empty, but when
the virtual network is destroyed, we had been unconditionally trying
to delete the rule. This was harmless, except that it created a bogus
error message.

This patch conditionalizes the delete command in the same manner that
the insert command is already conditionalized.
src/network/bridge_driver.c