summaryrefslogtreecommitdiffstats
path: root/ipv6.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2015-03-02 20:08:10 +0000
committerRoy Marples <roy@marples.name>2015-03-02 20:08:10 +0000
commit4f6de1802f7b353040c59007d82645efce4b6c0a (patch)
tree411bdf5fd3c989fb4e5ec0f5fd22a60098541f69 /ipv6.c
parent79b9d69d50cffc998a62bb1d7922f79976d14690 (diff)
downloaddhcpcd-4f6de1802f7b353040c59007d82645efce4b6c0a.tar.xz
Check we manage the protocol before handling it.
Diffstat (limited to 'ipv6.c')
-rw-r--r--ipv6.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ipv6.c b/ipv6.c
index 4503ffed..8f1f0216 100644
--- a/ipv6.c
+++ b/ipv6.c
@@ -1767,6 +1767,9 @@ ipv6_handlert(struct dhcpcd_ctx *ctx, int cmd, struct rt6 *rt)
{
struct rt6 *f;
+ if (ctx->ipv6 == NULL)
+ return 0;
+
f = ipv6_findrt(ctx, rt, 1);
switch(cmd) {
case RTM_ADD: