am d870426c: am 49b71a9e: Check dst addr for NULL incase of IFF_POINTOPOINT interface (b/4603819)

* commit 'd870426cf67e614e4cb938f9e66e00eeb57febc4':
  Check dst addr for NULL incase of IFF_POINTOPOINT interface (b/4603819)
diff --git a/net.c b/net.c
index e26b8d4..f3147d6 100644
--- a/net.c
+++ b/net.c
@@ -526,7 +526,8 @@
 			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;