Fixed crash when filters fail to load

The number of filters wasn't decreased if a filter failed to load resulting
in a crash when the filters were applied.
This commit is contained in:
Markus Makela 2015-11-17 03:04:23 +02:00
parent 5d4fe65b19
commit 074f37e997

View File

@ -1103,6 +1103,7 @@ int n = 0;
{
MXS_ERROR("Failed to load filter '%s' for service '%s'.",
filter_name, service->name);
n--;
}
flist[n] = NULL;