From c9f6cf8a05aba6a79bfb57120ca48adcf8e3949d Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Tue, 1 Jun 2004 13:29:08 +0000 Subject: Don't free socket's resources. --- proto/ospf/iface.c | 25 +++---------------------- 1 file changed, 3 insertions(+), 22 deletions(-) (limited to 'proto/ospf/iface.c') diff --git a/proto/ospf/iface.c b/proto/ospf/iface.c index f2b0d310..e7c63c4e 100644 --- a/proto/ospf/iface.c +++ b/proto/ospf/iface.c @@ -70,10 +70,6 @@ iface_chstate(struct ospf_iface *ifa, u8 state) { if(ifa->dr_sk!=NULL) { - if (ifa->dr_sk->rbuf) - mb_free(ifa->dr_sk->rbuf); - if (ifa->dr_sk->tbuf) - mb_free(ifa->dr_sk->tbuf); rfree(ifa->dr_sk); ifa->dr_sk=NULL; } @@ -106,29 +102,14 @@ downint(struct ospf_iface *ifa) } rem_node(NODE ifa); if(ifa->hello_sk!=NULL) - { - if (ifa->hello_sk->rbuf) - mb_free(ifa->hello_sk->rbuf); - if (ifa->hello_sk->tbuf) - mb_free(ifa->hello_sk->tbuf); rfree(ifa->hello_sk); - } + if(ifa->dr_sk!=NULL) - { - if (ifa->dr_sk->rbuf) - mb_free(ifa->dr_sk->rbuf); - if (ifa->dr_sk->tbuf) - mb_free(ifa->dr_sk->tbuf); rfree(ifa->dr_sk); - } + if(ifa->ip_sk!=NULL) - { - if (ifa->ip_sk->rbuf) - mb_free(ifa->ip_sk->rbuf); - if (ifa->ip_sk->tbuf) - mb_free(ifa->ip_sk->tbuf); rfree(ifa->ip_sk); - } + if(ifa->wait_timer!=NULL) { tm_stop(ifa->wait_timer); -- cgit v1.2.3