mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 15:23:39 +00:00
Merge pull request #834 from dwalton76/ospf6d-show-crash
ospf6d: crash in ospf6_lsdb_show
This commit is contained in:
commit
95b06c0aa5
@ -389,8 +389,10 @@ void ospf6_lsdb_show(struct vty *vty, enum ospf_lsdb_show_level level,
|
|||||||
if (level == OSPF6_LSDB_SHOW_LEVEL_NORMAL)
|
if (level == OSPF6_LSDB_SHOW_LEVEL_NORMAL)
|
||||||
ospf6_lsa_show_summary_header(vty);
|
ospf6_lsa_show_summary_header(vty);
|
||||||
|
|
||||||
end = ospf6_lsdb_head(lsdb, !!type + !!(type && adv_router), *type,
|
end = ospf6_lsdb_head(lsdb, !!type + !!(type && adv_router),
|
||||||
*adv_router, &lsa);
|
type ? *type : 0,
|
||||||
|
adv_router ? *adv_router : 0,
|
||||||
|
&lsa);
|
||||||
while (lsa) {
|
while (lsa) {
|
||||||
if ((!adv_router || lsa->header->adv_router == *adv_router)
|
if ((!adv_router || lsa->header->adv_router == *adv_router)
|
||||||
&& (!id || lsa->header->id == *id))
|
&& (!id || lsa->header->id == *id))
|
||||||
|
Loading…
Reference in New Issue
Block a user