Bug in socket closing.
This commit is contained in:
parent
ef6f26b417
commit
4513280611
1 changed files with 1 additions and 5 deletions
|
@ -54,11 +54,7 @@ iface_chstate(struct ospf_iface *ifa, u8 state)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if(ifa->dr_sk!=NULL)
|
if(ifa->dr_sk!=NULL) rfree(ifa->dr_sk);
|
||||||
{
|
|
||||||
sk_close(ifa->dr_sk);
|
|
||||||
rfree(ifa->dr_sk);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue