mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
Avoid SEGV's in tracing.
This commit is contained in:
parent
8cd5c52fcb
commit
1ae494a7e1
@ -87,7 +87,7 @@ downint(struct ospf_iface *ifa)
|
|||||||
|
|
||||||
WALK_LIST_DELSAFE(n,nx,ifa->neigh_list)
|
WALK_LIST_DELSAFE(n,nx,ifa->neigh_list)
|
||||||
{
|
{
|
||||||
OSPF_TRACE(D_EVENTS, "%s: Removing neighbor %I", n->ip);
|
OSPF_TRACE(D_EVENTS, "Removing neighbor %I", n->ip);
|
||||||
ospf_neigh_remove(n);
|
ospf_neigh_remove(n);
|
||||||
}
|
}
|
||||||
rem_node(NODE ifa);
|
rem_node(NODE ifa);
|
||||||
|
@ -369,7 +369,7 @@ ospf_lsupd_rx(struct ospf_lsupd_packet *ps, struct proto *p,
|
|||||||
lsa->age=htons(LSA_MAXAGE);
|
lsa->age=htons(LSA_MAXAGE);
|
||||||
lsa->sn=htonl(LSA_MAXSEQNO);
|
lsa->sn=htonl(LSA_MAXSEQNO);
|
||||||
OSPF_TRACE(D_EVENTS, "Premature aging self originated lsa.");
|
OSPF_TRACE(D_EVENTS, "Premature aging self originated lsa.");
|
||||||
OSPF_TRACE(D_EVENTS, "%s: Type: %d, Id: %I, Rt: %I",lsatmp.type,
|
OSPF_TRACE(D_EVENTS, "Type: %d, Id: %I, Rt: %I",lsatmp.type,
|
||||||
lsatmp.id, lsatmp.rt);
|
lsatmp.id, lsatmp.rt);
|
||||||
lsasum_check(lsa,(lsa+1),po);
|
lsasum_check(lsa,(lsa+1),po);
|
||||||
lsatmp.checksum=ntohs(lsa->checksum);
|
lsatmp.checksum=ntohs(lsa->checksum);
|
||||||
|
Loading…
Reference in New Issue
Block a user