From: Olivier Dugeon Date: Thu, 22 Feb 2018 10:30:05 +0000 (+0100) Subject: OSPFd: Correct style 2nd round X-Git-Tag: frr-4.0~8^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=5cd72f4484065f13c39a237921bf77e917335ff8;p=matthieu%2Ffrr.git OSPFd: Correct style 2nd round Signed-off-by: Olivier Dugeon --- diff --git a/ospfd/ospf_opaque.c b/ospfd/ospf_opaque.c index 4417f42b3c..d3f41fe86a 100644 --- a/ospfd/ospf_opaque.c +++ b/ospfd/ospf_opaque.c @@ -614,21 +614,24 @@ static void free_opaque_info_owner(void *val) case OSPF_OPAQUE_LINK_LSA: { struct ospf_interface *oi = (struct ospf_interface *)(oipt->owner); + listnode_delete(oi->opaque_lsa_self, oipt); break; } case OSPF_OPAQUE_AREA_LSA: { struct ospf_area *area = (struct ospf_area *)(oipt->owner); + listnode_delete(area->opaque_lsa_self, oipt); break; } case OSPF_OPAQUE_AS_LSA: { struct ospf *top = (struct ospf *)(oipt->owner); + listnode_delete(top->opaque_lsa_self, oipt); break; } default: - zlog_warn("free_opaque_info_owner: Unexpected LSA-type(%u)", + zlog_warn("%s: Unexpected LSA-type(%u)", __func__, oipt->lsa_type); break; /* This case may not exist. */ }