]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix prior for IPv6 old routes.
authorRoy Marples <roy@marples.name>
Wed, 9 Sep 2015 08:50:47 +0000 (08:50 +0000)
committerRoy Marples <roy@marples.name>
Wed, 9 Sep 2015 08:50:47 +0000 (08:50 +0000)
ipv6.c

diff --git a/ipv6.c b/ipv6.c
index 216b8a6c2e253fdf22c9f1f5e9da8cec53b30ccf..a3f76fb48162940b6600445fd66952996b7ea6f8 100644 (file)
--- a/ipv6.c
+++ b/ipv6.c
@@ -1903,7 +1903,7 @@ nc_route(struct rt6 *ort, struct rt6 *nrt)
 
        /* If the old route does not have an interface, give it the
         * interface of the new route for context. */
-       if (ort->iface == NULL)
+       if (ort && ort->iface == NULL)
                ort->iface = nrt->iface;
 
 #ifdef HAVE_ROUTE_METRIC