diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2015-08-19 11:16:23 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2015-08-19 11:16:23 +0200 |
commit | b5e76398de1d4468b4061d9ef57dd3154b2f745e (patch) | |
tree | f1ef5836b1a67b6bc13da55bb21860ec6cb4e69f /proto/ospf/packet.c | |
parent | c7b99a932cab1873042e356143ab71755920157a (diff) |
OSPF: Fixes some issues with link detection
Thanks to Bernardo Figueiredo and Israel G. Lugo for the bugreport.
Diffstat (limited to 'proto/ospf/packet.c')
-rw-r--r-- | proto/ospf/packet.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/proto/ospf/packet.c b/proto/ospf/packet.c index fb63e61c..6b8fd7b5 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); |