mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
networkGetDHCPLeases: Don't assign @ipdef_tmp twice
When rewriting the function, I've mistakenly declared a variable
and assigned it to itself. Let's initialize the variable properly.
Fixes: 5fb6d98c88
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
03be543f6b
commit
b304207f58
@ -4155,7 +4155,7 @@ networkGetDHCPLeases(virNetworkPtr net,
|
|||||||
|
|
||||||
/* Obtain prefix */
|
/* Obtain prefix */
|
||||||
for (j = 0; j < def->nips; j++) {
|
for (j = 0; j < def->nips; j++) {
|
||||||
virNetworkIPDefPtr ipdef_tmp = ipdef_tmp = &def->ips[j];
|
virNetworkIPDefPtr ipdef_tmp = &def->ips[j];
|
||||||
|
|
||||||
if (ipv6 && VIR_SOCKET_ADDR_IS_FAMILY(&ipdef_tmp->address,
|
if (ipv6 && VIR_SOCKET_ADDR_IS_FAMILY(&ipdef_tmp->address,
|
||||||
AF_INET6)) {
|
AF_INET6)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user