mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
util: fix typo in VIR_MOCK_WRAP_RET_ARGS()
When virfirewalltest.c was first written in commit 3a0ca7de51
(March
2013), a conditional accidentally tested for "ipv4" instead of
"ipv6". Since the file ended up only testing ipv4 rules, this has
never made any difference in practice, but I'm making some other
changes in this file and just couldn't let it stand :-)
Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
This commit is contained in:
parent
a32cc82793
commit
28a3dedddd
@ -128,7 +128,7 @@ VIR_MOCK_WRAP_RET_ARGS(g_dbus_connection_call_sync,
|
|||||||
if (fwBuf) {
|
if (fwBuf) {
|
||||||
if (STREQ(type, "ipv4"))
|
if (STREQ(type, "ipv4"))
|
||||||
virBufferAddLit(fwBuf, IPTABLES_PATH);
|
virBufferAddLit(fwBuf, IPTABLES_PATH);
|
||||||
else if (STREQ(type, "ipv4"))
|
else if (STREQ(type, "ipv6"))
|
||||||
virBufferAddLit(fwBuf, IP6TABLES_PATH);
|
virBufferAddLit(fwBuf, IP6TABLES_PATH);
|
||||||
else
|
else
|
||||||
virBufferAddLit(fwBuf, EBTABLES_PATH);
|
virBufferAddLit(fwBuf, EBTABLES_PATH);
|
||||||
|
Loading…
Reference in New Issue
Block a user