From: Roy Marples Date: Thu, 9 Oct 2014 10:18:23 +0000 (+0000) Subject: Ensure we have IPv6 allocated before processing a kernel deleted IPv6 route. X-Git-Tag: v6.5.1~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3446ccb56bc6fedba78161e2fa94cf88f9cfbdb8;p=thirdparty%2Fdhcpcd.git Ensure we have IPv6 allocated before processing a kernel deleted IPv6 route. --- diff --git a/ipv6.c b/ipv6.c index 3bd0e2ca..daf30d71 100644 --- a/ipv6.c +++ b/ipv6.c @@ -1141,6 +1141,9 @@ ipv6_routedeleted(struct dhcpcd_ctx *ctx, const struct rt6 *rt) { struct rt6 *f; + if (ctx->ipv6 == NULL) + return 0; + f = find_route6(ctx->ipv6->routes, rt); if (f == NULL) return 0;