Commit 45132806 authored by Ondřej Filip's avatar Ondřej Filip

Bug in socket closing.

parent ef6f26b4
......@@ -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);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment