Don't free propagated bans on dereference

This commit is contained in:
Ed Kellett 2021-05-20 08:09:00 +01:00
parent ce376a21cc
commit 73d8a5aa23

View file

@ -543,7 +543,7 @@ void
deref_conf(struct ConfItem *aconf)
{
aconf->clients--;
if(!aconf->clients && IsIllegal(aconf))
if(!aconf->clients && IsIllegal(aconf) && !lookup_prop_ban(aconf))
free_conf(aconf);
}