0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 01:31:55 +00:00

Avoid SEGV's in tracing.

This commit is contained in:
Martin Mares 2000-06-07 11:55:36 +00:00
parent 8cd5c52fcb
commit 1ae494a7e1
2 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ downint(struct ospf_iface *ifa)
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);
}
rem_node(NODE ifa);

View File

@ -369,7 +369,7 @@ ospf_lsupd_rx(struct ospf_lsupd_packet *ps, struct proto *p,
lsa->age=htons(LSA_MAXAGE);
lsa->sn=htonl(LSA_MAXSEQNO);
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);
lsasum_check(lsa,(lsa+1),po);
lsatmp.checksum=ntohs(lsa->checksum);