]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix compile
authorRoy Marples <roy@marples.name>
Fri, 26 Jun 2015 20:17:14 +0000 (20:17 +0000)
committerRoy Marples <roy@marples.name>
Fri, 26 Jun 2015 20:17:14 +0000 (20:17 +0000)
if-linux.c

index 94e328726f8dac8994d27679830f52b186b986fd..3f5a9f0855b50490624cb2f716a604052979a828 100644 (file)
@@ -448,7 +448,7 @@ if_copyrt(struct dhcpcd_ctx *ctx, struct rt *rt, struct nlmsghdr *nlm)
                /* For some reason the default route comes back with the
                 * loopback interface in RTA_OIF? Lets find it by
                 * preferred source address */
-               if ((ap = ipv4_findaddr(ctx, &prefsrc)))
+               if ((ap = ipv4_findaddr(ctx, &rt->src)))
                        rt->iface = ap->iface;
        }
        return 0;