summary |
log |
commit |
diff |
tree
raw |
patch |
inline | side by side (from parent 1:
b640cc4)
free the interface list before returning from the function
host, NI_MAXHOST, NULL, 0, NI_NUMERICHOST);
if (!strcmp(ifa->ifa_name, iface) &&
(ifa->ifa_addr->sa_family == sa_family)) {
host, NI_MAXHOST, NULL, 0, NI_NUMERICHOST);
if (!strcmp(ifa->ifa_name, iface) &&
(ifa->ifa_addr->sa_family == sa_family)) {
if (s != 0) {
warn("getnameinfo: %s", gai_strerror(s));
return NULL;
if (s != 0) {
warn("getnameinfo: %s", gai_strerror(s));
return NULL;