diff options
author | Chirag Shah <chirag@cumulusnetworks.com> | 2017-09-06 20:42:20 +0200 |
---|---|---|
committer | Chirag Shah <chirag@cumulusnetworks.com> | 2017-10-03 18:15:19 +0200 |
commit | 0d31e63e3e56b2b70118316d4816dabf4b676565 (patch) | |
tree | 24b2409def1ed0ab936b4d59babfe944ed948d73 /ospfd/ospf_apiserver.c | |
parent | ospfd: OSPFv2 VRF Support (diff) | |
download | frr-0d31e63e3e56b2b70118316d4816dabf4b676565.tar.xz frr-0d31e63e3e56b2b70118316d4816dabf4b676565.zip |
ospfd: OSPFv2 VRF, fix CLAN SA warning
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
Diffstat (limited to 'ospfd/ospf_apiserver.c')
-rw-r--r-- | ospfd/ospf_apiserver.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ospfd/ospf_apiserver.c b/ospfd/ospf_apiserver.c index 20d1b5944..3b9d67af8 100644 --- a/ospfd/ospf_apiserver.c +++ b/ospfd/ospf_apiserver.c @@ -1376,7 +1376,11 @@ struct ospf_lsa *ospf_apiserver_opaque_lsa_new(struct ospf_area *area, struct ospf *ospf; - ospf = ospf_lookup_by_vrf_id(VRF_DEFAULT); + if (oi->ospf) + ospf = oi->ospf; + else + ospf = ospf_lookup_by_vrf_id(VRF_DEFAULT); + assert(ospf); /* Create a stream for internal opaque LSA */ @@ -1431,7 +1435,7 @@ struct ospf_lsa *ospf_apiserver_opaque_lsa_new(struct ospf_area *area, new->area = area; new->oi = oi; - new->vrf_id = oi->ospf->vrf_id; + new->vrf_id = ospf->vrf_id; SET_FLAG(new->flags, OSPF_LSA_SELF); memcpy(new->data, newlsa, length); |