mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 06:50:25 +00:00
Merge pull request #16078 from FRRouting/mergify/bp/stable/9.1/pr-16021
isisd: fix heap-after-free with prefix sid (backport #16021)
This commit is contained in:
commit
c92d08c277
@ -703,6 +703,7 @@ static void isis_spf_add_local(struct isis_spftree *spftree,
|
|||||||
} else { /* vertex->d_N > cost */
|
} else { /* vertex->d_N > cost */
|
||||||
/* f) */
|
/* f) */
|
||||||
isis_vertex_queue_delete(&spftree->tents, vertex);
|
isis_vertex_queue_delete(&spftree->tents, vertex);
|
||||||
|
hash_release(spftree->prefix_sids, vertex);
|
||||||
isis_vertex_del(vertex);
|
isis_vertex_del(vertex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -808,6 +809,7 @@ static void process_N(struct isis_spftree *spftree, enum vertextype vtype,
|
|||||||
/* 4) */
|
/* 4) */
|
||||||
} else {
|
} else {
|
||||||
isis_vertex_queue_delete(&spftree->tents, vertex);
|
isis_vertex_queue_delete(&spftree->tents, vertex);
|
||||||
|
hash_release(spftree->prefix_sids, vertex);
|
||||||
isis_vertex_del(vertex);
|
isis_vertex_del(vertex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user