Fix a place aconfs could be freed while referenced
(not a bug until a9536f755
since bans were not referenced before)
This commit is contained in:
parent
5eb10743f9
commit
548e31d3bd
1 changed files with 3 additions and 1 deletions
|
@ -1135,8 +1135,10 @@ deactivate_conf(struct ConfItem *aconf, rb_dlink_node *ptr, time_t now)
|
|||
del_from_resv_hash(aconf->host, aconf);
|
||||
break;
|
||||
}
|
||||
if (aconf->lifetime != 0 && now < aconf->lifetime)
|
||||
if (aconf->clients > 0 || (aconf->lifetime != 0 && now < aconf->lifetime))
|
||||
{
|
||||
aconf->status |= CONF_ILLEGAL;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (aconf->lifetime != 0)
|
||||
|
|
Loading…
Reference in a new issue