]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix detecting the dstaddr at startup.
authorRoy Marples <roy@marples.name>
Fri, 3 Jul 2009 09:52:37 +0000 (09:52 +0000)
committerRoy Marples <roy@marples.name>
Fri, 3 Jul 2009 09:52:37 +0000 (09:52 +0000)
net.c

diff --git a/net.c b/net.c
index d917b271d326bd1298131717f1a504786c873e66..3e49ee155345457e1fe228d06d788e3cd548054c 100644 (file)
--- a/net.c
+++ b/net.c
@@ -383,7 +383,7 @@ do_address(const char *ifname,
                n = (const struct sockaddr_in *)(void *)ifa->ifa_netmask;
                if (ifa->ifa_flags & IFF_POINTOPOINT)
                        d = (const struct sockaddr_in *)(void *)
-                               &ifa->ifa_dstaddr;
+                               ifa->ifa_dstaddr;
                else
                        d = NULL;
                if (act == 1) {