]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Minor fixes.
authorOndrej Zajicek <santiago@crfreenet.org>
Fri, 28 May 2010 09:16:39 +0000 (11:16 +0200)
committerOndrej Zajicek <santiago@crfreenet.org>
Fri, 28 May 2010 09:16:39 +0000 (11:16 +0200)
proto/ospf/rt.c
sysdep/bsd/krt-sock.c

index 892aa411652bf0177b866e78d213275cd864d208..55cd1cc3b05dabcfd957b1cf9707601b50d8dc4d 100644 (file)
@@ -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)
index 12ebe6deccf05d4b4a26dcc3f86adaa1259f8028..4c8676efce5e57d0f3dc35021d85f10dd109e7bf 100644 (file)
@@ -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
   }