X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ospf6d%2Fospf6_flood.c;h=0828c2beb659348d24b47305d0ae9f8f1f87a2ac;hb=c52e2ecf95a9be318912caacc0851d9307e679f7;hp=2059d8486829c099daf136c1b853df2d8e418fc0;hpb=27982ebc9d211a9353029a043a120fdf291f5171;p=mirror_frr.git diff --git a/ospf6d/ospf6_flood.c b/ospf6d/ospf6_flood.c index 2059d8486..0828c2beb 100644 --- a/ospf6d/ospf6_flood.c +++ b/ospf6d/ospf6_flood.c @@ -330,6 +330,8 @@ void ospf6_flood_interface(struct ospf6_neighbor *from, struct ospf6_lsa *lsa, zlog_debug( "Requesting the same, remove it, next neighbor"); if (req == on->last_ls_req) { + /* sanity check refcount */ + assert(req->lock >= 2); ospf6_lsa_unlock(req); on->last_ls_req = NULL; }