diff options
| author | Roy Marples <roy@marples.name> | 2015-03-02 20:08:10 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2015-03-02 20:08:10 +0000 |
| commit | 4f6de1802f7b353040c59007d82645efce4b6c0a (patch) | |
| tree | 411bdf5fd3c989fb4e5ec0f5fd22a60098541f69 /ipv6.c | |
| parent | 79b9d69d50cffc998a62bb1d7922f79976d14690 (diff) | |
| download | dhcpcd-4f6de1802f7b353040c59007d82645efce4b6c0a.tar.xz | |
Check we manage the protocol before handling it.
Diffstat (limited to 'ipv6.c')
| -rw-r--r-- | ipv6.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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: |
