From: Ondrej Filip Date: Mon, 9 Apr 2001 19:15:03 +0000 (+0000) Subject: Patch from David Rohleder thanx. X-Git-Tag: v1.2.0~472 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea31425a6191f0b3e181f8a1c7368fc4dfca24b4;p=thirdparty%2Fbird.git Patch from David Rohleder thanx. --- diff --git a/proto/ospf/packet.c b/proto/ospf/packet.c index 382e542fc..3543964fd 100644 --- a/proto/ospf/packet.c +++ b/proto/ospf/packet.c @@ -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);