mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 10:12:39 +01:00
Blacklist: fix accidentally clobbering previous filters
This commit is contained in:
parent
960833fed6
commit
e232f35c63
1 changed files with 9 additions and 4 deletions
|
@ -1943,12 +1943,17 @@ conf_set_blacklist_reason(void *data)
|
||||||
}
|
}
|
||||||
|
|
||||||
cleanup_bl:
|
cleanup_bl:
|
||||||
RB_DLINK_FOREACH_SAFE(ptr, nptr, yy_blacklist_filters.head)
|
if (data == NULL)
|
||||||
{
|
{
|
||||||
if (data == NULL)
|
RB_DLINK_FOREACH_SAFE(ptr, nptr, yy_blacklist_filters.head)
|
||||||
|
{
|
||||||
rb_free(ptr);
|
rb_free(ptr);
|
||||||
|
rb_dlinkDelete(ptr, &yy_blacklist_filters);
|
||||||
rb_dlinkDelete(ptr, &yy_blacklist_filters);
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
yy_blacklist_filters = (rb_dlink_list){ NULL, NULL, 0 };
|
||||||
}
|
}
|
||||||
|
|
||||||
rb_free(yy_blacklist_host);
|
rb_free(yy_blacklist_host);
|
||||||
|
|
Loading…
Reference in a new issue