mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-08 12:41:29 +00: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: 5fb6d98c881c42ab41ca72060217b846949a438f 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…
x
Reference in New Issue
Block a user