getifaddrs can return a NULL pointer.