Thanks Aaron, I just sent a new version of it which also checks for
ifa_netmask
as the existing code does currently. It will save some memory in cases where
either name or netmask are NULL (which I guess it shouldn't happen but it
can
happen).
Thanks again,
Daniel
On Mon, Jul 17, 2017 at 9:07
Daniel Alvarez Sanchez writes:
> When the interfaces list is retrieved through getiffaddrs(), there
> might be elements with iface_name set to NULL.
> This patch checks iface_name to be not NULL before comparing it to the
> actual device name in the loop that calculates how
When the interfaces list is retrieved through getiffaddrs(), there
might be elements with iface_name set to NULL.
This patch checks iface_name to be not NULL before comparing it to the
actual device name in the loop that calculates how many interfaces
exist with that same name.
Note, that this