]> git.proxmox.com Git - mirror_frr.git/blobdiff - bgpd/rfapi/rfapi.c
*: Convert list_delete(struct list *) to ** to allow nulling
[mirror_frr.git] / bgpd / rfapi / rfapi.c
index 477716cafbc4f67647e1aef443bed9e50785d2c4..6e31b6345178b6ed0c5efaf4a9c0f495ed5731f7 100644 (file)
@@ -490,7 +490,8 @@ void del_vnc_route(struct rfapi_descriptor *rfd,
                 * Delete local_nexthops list
                 */
                if (bi->extra && bi->extra->vnc.export.local_nexthops) {
-                       list_delete(bi->extra->vnc.export.local_nexthops);
+                       list_delete_and_null(
+                               &bi->extra->vnc.export.local_nexthops);
                }
 
                bgp_aggregate_decrement(bgp, p, bi, afi, safi);