diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2010-05-28 11:16:39 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2010-05-28 11:16:39 +0200 |
commit | 9b061f7ea5933f70c200bb3b3a7be5a2e472e805 (patch) | |
tree | 9ddf781795092feb8f8dfbbbc6d153e9ba2171cd | |
parent | 691057f03310e712428e19214ae48462d0f258e1 (diff) | |
download | bird-9b061f7ea5933f70c200bb3b3a7be5a2e472e805.tar bird-9b061f7ea5933f70c200bb3b3a7be5a2e472e805.zip |
Minor fixes.
-rw-r--r-- | proto/ospf/rt.c | 2 | ||||
-rw-r--r-- | sysdep/bsd/krt-sock.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/proto/ospf/rt.c b/proto/ospf/rt.c index 892aa41..55cd1cc 100644 --- a/proto/ospf/rt.c +++ b/proto/ospf/rt.c @@ -854,7 +854,7 @@ static inline void check_sum_net_lsa(struct proto_ospf *po, ort *nf) { struct area_net *anet = NULL; - struct ospf_area *anet_oa; + struct ospf_area *anet_oa = NULL; /* RT entry marked as area network */ if (nf->fn.x0) diff --git a/sysdep/bsd/krt-sock.c b/sysdep/bsd/krt-sock.c index 12ebe6d..4c8676e 100644 --- a/sysdep/bsd/krt-sock.c +++ b/sysdep/bsd/krt-sock.c @@ -549,11 +549,11 @@ krt_read_addr(struct ks_msg *msg) { ifa.prefix = ipa_and(ifa.ip, ipa_mkmask(masklen)); - if (i->ifa_prefixlen == BITS_PER_IP_ADDRESS - 1) + if (masklen == (BITS_PER_IP_ADDRESS - 1)) ifa.opposite = ipa_opposite_m1(ifa.ip); #ifndef IPV6 - if (i->ifa_prefixlen == BITS_PER_IP_ADDRESS - 2) + if (masklen == (BITS_PER_IP_ADDRESS - 2)) ifa.opposite = ipa_opposite_m2(ifa.ip); #endif } |