diff options
-rw-r--r-- | net.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -526,7 +526,8 @@ do_address(const char *ifname, addr->s_addr = a->sin_addr.s_addr; net->s_addr = n->sin_addr.s_addr; if (dst) { - if (ifa->ifa_flags & IFF_POINTOPOINT) + /* TODO: Fix getifaddrs() */ + if ((ifa->ifa_flags & IFF_POINTOPOINT) && d) dst->s_addr = d->sin_addr.s_addr; else dst->s_addr = INADDR_ANY; |