]> xenbits.xensource.com Git - libvirt.git/commitdiff
leaseshelper: swap two parameters of virLeaseNew
authorJán Tomko <jtomko@redhat.com>
Tue, 9 Feb 2016 12:13:51 +0000 (13:13 +0100)
committerJán Tomko <jtomko@redhat.com>
Tue, 9 Feb 2016 12:15:59 +0000 (13:15 +0100)
My commit e11aa74 messed up the parameter order.

Reported by John Ferlan.

src/network/leaseshelper.c

index 2a0b18cc6a7899a973ead3466e8da6f2ee491669..55ddd58e7f33c17d48a7d3448e2b32ffb2995564 100644 (file)
@@ -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