Don't die, if you receive strange LSA.
This commit is contained in:
parent
7f6b3cf247
commit
4ee2178935
1 changed files with 3 additions and 2 deletions
|
@ -293,8 +293,9 @@ ospf_ext_spfa(struct proto_ospf *po) /* FIXME looking into inter-area */
|
||||||
mlen=ipa_mklen(le->netmask);
|
mlen=ipa_mklen(le->netmask);
|
||||||
if((mlen<0)||(mlen>32))
|
if((mlen<0)||(mlen>32))
|
||||||
{
|
{
|
||||||
die("Invalid length of prefix! ID: %I, RT: %I, Type: %u, mask %I",
|
log("%s: Invalid mask in LSA.\nID: %I, RT: %I, Type: %u, Mask %I",
|
||||||
en->lsa.id,en->lsa.rt,en->lsa.type,le->netmask);
|
p->proto,en->lsa.id,en->lsa.rt,en->lsa.type,le->netmask);
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
nf=NULL;
|
nf=NULL;
|
||||||
|
|
Loading…
Reference in a new issue