From fd3b19f25200c2788d34bf25a62161927a123369 Mon Sep 17 00:00:00 2001 From: Olivier Dugeon Date: Fri, 19 Jan 2018 15:04:41 +0100 Subject: OSPFD: Update Segment Routing implementation - ospf_ext.c: Correct deferred pointer raised by valgrind - ospf_sr.c: Correct deffered pointer raised by valgrind. Modify Segment Routing shutdown. This is due to the fact that RI LSA 4.0.0.0 is flush prior to 7.0.0.X & 8.0.0.X LSA. This trigger SR-Node deletion which also remove all Extended Link / Prefix leaving them unavailable when there are referenced by 7.0.0.X & 8.0.0.X LSA flushing. - doc/OSPF-SR.rst: Correct Restructured Text syntax and add Configuration example as well as Credit section Signed-off-by: Olivier Dugeon --- ospfd/ospf_ext.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ospfd/ospf_ext.c') diff --git a/ospfd/ospf_ext.c b/ospfd/ospf_ext.c index e4dad990b7..0ed5800438 100644 --- a/ospfd/ospf_ext.c +++ b/ospfd/ospf_ext.c @@ -918,6 +918,10 @@ static struct ospf_lsa *ospf_ext_pref_lsa_new(struct ospf_area *area, u_int32_t tmp; u_int16_t length; + /* Sanity Check */ + if (exti == NULL) + return NULL; + /* Create a stream for LSA. */ if ((s = stream_new(OSPF_MAX_LSA_SIZE)) == NULL) { zlog_warn("EXT: stream_new() error"); @@ -998,6 +1002,10 @@ static struct ospf_lsa *ospf_ext_link_lsa_new(struct ospf_area *area, u_int32_t tmp; u_int16_t length; + /* Sanity Check */ + if (exti == NULL) + return NULL; + /* Create a stream for LSA. */ if ((s = stream_new(OSPF_MAX_LSA_SIZE)) == NULL) { zlog_warn("EXT: stream_new() error"); -- cgit v1.2.3