]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix logging of failed iptables commands
authorLaine Stump <laine@laine.org>
Tue, 14 Dec 2010 20:01:10 +0000 (15:01 -0500)
committerLaine Stump <laine@laine.org>
Thu, 23 Dec 2010 20:52:28 +0000 (15:52 -0500)
commitcf7311892a282fe8de451fdb577dbcdb5d49cace
treec01082fda96146f375f1d634a5f57f3bb413e09e
parent8322863fd59b8d5a6d13d9bfef0538d05e3f919f
Fix logging of failed iptables commands

The functions in iptables.c all return -1 on failure, but all their
callers (which all happen to be in bridge_driver.c) assume that they
are returning an errno, and the logging is done accordingly. This
patch fixes all the error checking and logging to assume < 0 is an
error, and nothing else.
src/network/bridge_driver.c