Patch from David Rohleder <davro@ics.muni.cz> thanx.

This commit is contained in:
Ondrej Filip 2001-04-09 19:15:03 +00:00
parent 01b776e117
commit ea31425a61

View file

@ -131,7 +131,7 @@ ospf_rx_hook(sock *sk, int size)
return(1);
}
if(ps->areaid!=ifa->an)
if(ntohl(ps->areaid)!=ifa->an)
{
log("%s: Bad OSPF packet received: other area %ld", p->name, ps->areaid);
log("%s: Discarding",p->name);