Don't die, if you receive strange LSA.

This commit is contained in:
Ondrej Filip 2000-05-17 00:28:45 +00:00
parent 7f6b3cf247
commit 4ee2178935

View file

@ -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;