diff options
author | Ondrej Filip <feela@network.cz> | 2000-05-31 20:45:16 +0200 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2000-05-31 20:45:16 +0200 |
commit | 3f6953a103b9a846625a0d51e30b6dc59eedc7f0 (patch) | |
tree | da9da8f590522c27df5f1e8cff56b7ae3a549462 /proto/ospf | |
parent | 489b21555e59d39d1c26dd3051f077c6f0a07c85 (diff) | |
download | bird-3f6953a103b9a846625a0d51e30b6dc59eedc7f0.tar bird-3f6953a103b9a846625a0d51e30b6dc59eedc7f0.zip |
Some bugs in cleanup after iface down.
Diffstat (limited to 'proto/ospf')
-rw-r--r-- | proto/ospf/iface.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/proto/ospf/iface.c b/proto/ospf/iface.c index befcf7f..e7999e3 100644 --- a/proto/ospf/iface.c +++ b/proto/ospf/iface.c @@ -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); } |