summaryrefslogtreecommitdiff
path: root/proto/ospf/packet.c
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2015-10-17 14:44:34 +0200
committerOndrej Zajicek (work) <santiago@crfreenet.org>2015-10-17 14:44:34 +0200
commit8eb8e546dc8cc647fcfa4a3a17dfa8ab36b00958 (patch)
tree837c79b9e4adbe8d9d5fb2ffaa56f89b5e491db2 /proto/ospf/packet.c
parent8465dccb06afffed171dc1e224e4eb5f67cc3326 (diff)
parentacb04cfdc550697a7171a86ca559fd8c52841acb (diff)
Merge branch 'master' into rip-new
Diffstat (limited to 'proto/ospf/packet.c')
-rw-r--r--proto/ospf/packet.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/proto/ospf/packet.c b/proto/ospf/packet.c
index 65842037..5af9e875 100644
--- a/proto/ospf/packet.c
+++ b/proto/ospf/packet.c
@@ -231,6 +231,10 @@ ospf_rx_hook(sock *sk, int len)
const char *err_dsc = NULL;
uint err_val = 0;
+ /* Should not happen */
+ if (ifa->state <= OSPF_IS_LOOP)
+ return 1;
+
int src_local, dst_local, dst_mcast;
src_local = ipa_in_net(sk->faddr, ifa->addr->prefix, ifa->addr->pxlen);
dst_local = ipa_equal(sk->laddr, ifa->addr->ip);