[PATCH] leaseshelper: swap two parameters of virLeaseNew

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



My commit e11aa74 messed up the parameter order.

Reported by John Ferlan.
---
 src/network/leaseshelper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Pushed as trivial.

diff --git a/src/network/leaseshelper.c b/src/network/leaseshelper.c
index 2a0b18c..55ddd58 100644
--- a/src/network/leaseshelper.c
+++ b/src/network/leaseshelper.c
@@ -462,7 +462,7 @@ main(int argc, char **argv)
     case VIR_LEASE_ACTION_ADD:
     case VIR_LEASE_ACTION_OLD:
         /* Create new lease */
-        if (virLeaseNew(&lease_new, mac, clientid, ip, hostname, server_duid, iaid) < 0)
+        if (virLeaseNew(&lease_new, mac, clientid, ip, hostname, iaid, server_duid) < 0)
             goto cleanup;
         /* Custom ipv6 leases *will not* be created if the env-var DNSMASQ_MAC
          * is not set. In the special case, when the $(interface).status file
-- 
2.4.10

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]