summaryrefslogtreecommitdiff
path: root/proto
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2000-05-30 15:04:52 +0000
committerOndrej Filip <feela@network.cz>2000-05-30 15:04:52 +0000
commit4513280611d6c4e3409bf75139a9bd844843d462 (patch)
tree8c8ca2fead3c7c50ad0d91c702568ca4863c0087 /proto
parentef6f26b417060f9ac6c26224469b909a0c3aa933 (diff)
Bug in socket closing.
Diffstat (limited to 'proto')
-rw-r--r--proto/ospf/iface.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/proto/ospf/iface.c b/proto/ospf/iface.c
index 268eb191..e8910a8b 100644
--- a/proto/ospf/iface.c
+++ b/proto/ospf/iface.c
@@ -54,11 +54,7 @@ iface_chstate(struct ospf_iface *ifa, u8 state)
}
else
{
- if(ifa->dr_sk!=NULL)
- {
- sk_close(ifa->dr_sk);
- rfree(ifa->dr_sk);
- }
+ if(ifa->dr_sk!=NULL) rfree(ifa->dr_sk);
}
}
}