mirror of https://gitee.com/openkylin/libvirt.git
leaseshelper: swap two parameters of virLeaseNew
My commit e11aa74
messed up the parameter order.
Reported by John Ferlan.
This commit is contained in:
parent
6951ab6881
commit
99a6f30db0
src/network
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue