mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
libvirt_nss.c: Fix typo in aiforaf()
In my previous commit of b1d87f9ad9 I've made a typo breaking
the FreeBSD build. s/ipAaddr/ipAddr/
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
@@ -643,7 +643,7 @@ aiforaf(const char *name, int af, struct addrinfo *pai, struct addrinfo **aip)
|
|||||||
hints.ai_family = af;
|
hints.ai_family = af;
|
||||||
|
|
||||||
if (getaddrinfo(ipAddr, NULL, &hints, &res0)) {
|
if (getaddrinfo(ipAddr, NULL, &hints, &res0)) {
|
||||||
VIR_FREE(ipAaddr);
|
VIR_FREE(ipAddr);
|
||||||
addrList++;
|
addrList++;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@@ -655,7 +655,7 @@ aiforaf(const char *name, int af, struct addrinfo *pai, struct addrinfo **aip)
|
|||||||
while ((*aip)->ai_next)
|
while ((*aip)->ai_next)
|
||||||
*aip = (*aip)->ai_next;
|
*aip = (*aip)->ai_next;
|
||||||
|
|
||||||
VIR_FREE(ipAaddr);
|
VIR_FREE(ipAddr);
|
||||||
addrList++;
|
addrList++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user