0
0
Fork 0
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:
Elizabeth Myers 2013-04-21 11:10:19 -05:00
parent 960833fed6
commit e232f35c63

View file

@ -1943,12 +1943,17 @@ conf_set_blacklist_reason(void *data)
}
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_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);