]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Some bugs in cleanup after iface down.
authorOndrej Filip <feela@network.cz>
Wed, 31 May 2000 18:45:16 +0000 (18:45 +0000)
committerOndrej Filip <feela@network.cz>
Wed, 31 May 2000 18:45:16 +0000 (18:45 +0000)
proto/ospf/iface.c

index befcf7fda052fd051c59389c19eee434b806a486..e7999e361b3afbbebd3fdef9bb4f3de80d961e9a 100644 (file)
@@ -54,7 +54,11 @@ iface_chstate(struct ospf_iface *ifa, u8 state)
       }
       else
       {
-        if(ifa->dr_sk!=NULL) rfree(ifa->dr_sk);
+        if(ifa->dr_sk!=NULL)
+       {
+         rfree(ifa->dr_sk);
+         ifa->dr_sk=NULL;
+       }
       }
     }
   }
@@ -90,6 +94,11 @@ downint(struct ospf_iface *ifa)
     tm_stop(ifa->wait_timer);
     rfree(ifa->wait_timer);
   }
+  if(ifa->hello_timer!=NULL)
+  {
+    tm_stop(ifa->hello_timer);
+    rfree(ifa->hello_timer);
+  }
   mb_free(ifa);
 }