]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
route: sprinkle more assert
authorRoy Marples <roy@marples.name>
Mon, 4 Mar 2019 01:17:51 +0000 (01:17 +0000)
committerRoy Marples <roy@marples.name>
Mon, 4 Mar 2019 01:17:51 +0000 (01:17 +0000)
src/route.c

index 480215ccef8aadcd9a758a25346ce949ddfa02bf..7d4c68034301d05748f5d18329ebc085547b71e6 100644 (file)
@@ -342,6 +342,9 @@ rt_recvrt(int cmd, const struct rt *rt)
        struct rt *f;
 
        assert(rt != NULL);
+       assert(rt->rt_ifp != NULL);
+       assert(rt->rt_ifp->ctx != NULL);
+
        ctx = rt->rt_ifp->ctx;
        f = rt_find(&ctx->kroutes, rt);