summaryrefslogtreecommitdiffstats
path: root/proto/ospf/packet.c
diff options
context:
space:
mode:
Diffstat (limited to 'proto/ospf/packet.c')
-rw-r--r--proto/ospf/packet.c2
1 files changed, 1 insertions, 1 deletions
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);