X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ospf6d%2Fospf6_flood.c;h=0828c2beb659348d24b47305d0ae9f8f1f87a2ac;hb=c52e2ecf95a9be318912caacc0851d9307e679f7;hp=ae26668c8ae8c199230459dd29818fcb20234726;hpb=390cc01007d8e829a927cb11b15011c3151e1054;p=mirror_frr.git diff --git a/ospf6d/ospf6_flood.c b/ospf6d/ospf6_flood.c index ae26668c8..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; } @@ -347,7 +349,6 @@ void ospf6_flood_interface(struct ospf6_neighbor *from, struct ospf6_lsa *lsa, "Received is newer, remove requesting"); if (req == on->last_ls_req) { ospf6_lsa_unlock(req); - req = NULL; on->last_ls_req = NULL; } if (req)