diff options
| author | Renato Westphal <renato@openbsd.org> | 2018-04-15 19:10:50 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-04-15 19:10:50 -0300 |
| commit | aecba4e88ae7ca5a14df178cbd1982812c5cd489 (patch) | |
| tree | 16d7e3c38df7da9c373049a5823b74ad46a6efa5 /ospfd/ospf_zebra.c | |
| parent | 6b4fdc1cb134ebf0b03df22426aa13c5c51984f8 (diff) | |
| parent | bd6b2706b31f49df13927a055e2e824d3357ce6a (diff) | |
Merge pull request #2054 from qlyoung/sa-fixes
Static analyzer fixes
Diffstat (limited to 'ospfd/ospf_zebra.c')
| -rw-r--r-- | ospfd/ospf_zebra.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ospfd/ospf_zebra.c b/ospfd/ospf_zebra.c index 23d00633d4..6487596706 100644 --- a/ospfd/ospf_zebra.c +++ b/ospfd/ospf_zebra.c @@ -118,7 +118,8 @@ static int ospf_interface_add(int command, struct zclient *zclient, assert(ifp->info); - if (!OSPF_IF_PARAM_CONFIGURED(IF_DEF_PARAMS(ifp), type)) { + if (IF_DEF_PARAMS(ifp) + && !OSPF_IF_PARAM_CONFIGURED(IF_DEF_PARAMS(ifp), type)) { SET_IF_PARAM(IF_DEF_PARAMS(ifp), type); IF_DEF_PARAMS(ifp)->type = ospf_default_iftype(ifp); } |
