summaryrefslogtreecommitdiffstats
path: root/src/if-bsd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2019-03-04 01:11:58 +0000
committerRoy Marples <roy@marples.name>2019-03-04 01:11:58 +0000
commita4a0062eb966b47333843297d9d0059ac13745ed (patch)
tree947914278aa8011947a9714c2f5f841feb372003 /src/if-bsd.c
parent3bd9f9a5e91919b257db3ee9328c4c66f32a00f5 (diff)
downloaddhcpcd-a4a0062eb966b47333843297d9d0059ac13745ed.tar.xz
OpenBSD: add some asserts
Diffstat (limited to 'src/if-bsd.c')
-rw-r--r--src/if-bsd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/if-bsd.c b/src/if-bsd.c
index f638c641..8d281b42 100644
--- a/src/if-bsd.c
+++ b/src/if-bsd.c
@@ -469,6 +469,8 @@ if_route(unsigned char cmd, const struct rt *rt)
bool gateway_unspec;
assert(rt != NULL);
+ assert(rt->rt_ifp != NULL);
+ assert(rt->rt_ifp->ctx != NULL);
ctx = rt->rt_ifp->ctx;
#define ADDSA(sa) do { \