From 64e34726a184d42e4118efecbc283267a979dd6a Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Tue, 19 May 2015 17:24:41 -0700 Subject: [PATCH] Add a null check to ensure that another thread does not access the address in the deletion path of the interface. Signed-off-by: Ayan Banerjee Reviewed-by: Dinesh G Dutt --- ospfd/ospf_dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ospfd/ospf_dump.c b/ospfd/ospf_dump.c index ebcc717ff3..de62e0b7fa 100644 --- a/ospfd/ospf_dump.c +++ b/ospfd/ospf_dump.c @@ -204,7 +204,7 @@ ospf_if_name_string (struct ospf_interface *oi) static char buf[OSPF_IF_STRING_MAXLEN] = ""; u_int32_t ifaddr; - if (!oi) + if (!oi || !oi->address) return "inactive"; if (oi->type == OSPF_IFTYPE_VIRTUALLINK)