From: Roy Marples Date: Wed, 9 Sep 2015 08:50:47 +0000 (+0000) Subject: Fix prior for IPv6 old routes. X-Git-Tag: v6.9.4~60 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a73798528cb7edd0f389d0393738118d1aea4a7c;p=thirdparty%2Fdhcpcd.git Fix prior for IPv6 old routes. --- diff --git a/ipv6.c b/ipv6.c index 216b8a6c..a3f76fb4 100644 --- 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