+
+ /* we cannot rely on the p_filter existence.
+ This filter might be just
+ disabled, but the object still exists. Therefore, the string
+ is checked, additionally.
+ */
+ const char *psz_filter_type = [self getFilterType:psz_filter];
+ if (!psz_filter_type) {
+ msg_Err(p_intf, "Unable to find filter module \"%s\".", psz_name);
+ goto out;
+ }
+
+ char *psz_string = config_GetPsz(p_intf, psz_filter_type);
+ if (!psz_string) {
+ goto out;
+ }
+ if (strstr(psz_string, psz_filter) == NULL) {
+ free(psz_string);
+ goto out;
+ }
+ free(psz_string);
+