When a user specifies a non area 0 network in an ospf6d
config the daemon could crash.
Ticket: CM-9134
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
else
oa = listgetdata(listhead(ospf6->area_list));
+ /*
+ * It is possible to designate a non backbone
+ * area first. If that is the case safely
+ * fall out of this function.
+ */
+ if (oa == NULL)
+ return;
+
type = htons (OSPF6_LSTYPE_INTER_ROUTER);
for (lsa = ospf6_lsdb_type_router_head (type, router_id, oa->lsdb); lsa;
lsa = ospf6_lsdb_type_router_next (type, router_id, lsa))