From ea31425a6191f0b3e181f8a1c7368fc4dfca24b4 Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Mon, 9 Apr 2001 19:15:03 +0000 Subject: Patch from David Rohleder thanx. --- proto/ospf/packet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proto/ospf/packet.c b/proto/ospf/packet.c index 382e542..3543964 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); -- cgit v1.2.3