aboutsummaryrefslogtreecommitdiffstats
path: root/net.c
diff options
context:
space:
mode:
Diffstat (limited to 'net.c')
-rw-r--r--net.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net.c b/net.c
index e26b8d4..f3147d6 100644
--- a/net.c
+++ b/net.c
@@ -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;